There's that.
Or, you can try using `repo manifest -r` to create a manifest XML
file which has specific Git commit IDs for each project, commit
that to your manifest project, and then tag (or create a branch)
to that manifest file.
On Jan 21, 2:09 pm, Shawn Pearce <s...@google.com> wrote:
Thanks for this. I just wanted to clarify something before I do this
and end up messing things. So, I create a local copy of the repo
using repo init, run repo manifest -r and create a manifest XML file.
Now I should commit this as the default.xml file under platform/
manifest.git? I don't want to overwrite my existing default.xml file
and hence I am not sure what the right process here would be. Can you
please elaborate a bit. Thank you for your patience and response.
Cheers,
Bhupesh
On Jan 21, 2:09 pm, Shawn Pearce <s...@google.com> wrote:
Yes, exactly, you overwite the default.xml. But you should probably
do it on a branch, so maybe:
cd .repo/manifests
git checkout -b my-tag-name
repo manifest -r -o default.xml
git commit -a -m "tag ..."
and then push the branch, my-tag-name, back to your manifest project.
Later you can get back to this "tagged point" by doing:
repo init -b my-tag-name ...
After pushing your tag branch, you might want to switch your
manifest project back to the default branch and delete the tag
branch, to avoid confusing repo:
cd .repo/manifests
git checkout default
git branch -D my-tag-name
> Cheers,
> Bhupesh
>
>
> On Jan 21, 2:09�pm, Shawn Pearce <s...@google.com> wrote:
> > bhupesh <bhupeshkha...@gmail.com> wrote:
> > > Is rep forall -c git tag .... the way to tag an Andoid repo or is
> > > there any other better way. �Thanks.
> >
> > There's that.
> >
> > Or, you can try using `repo manifest -r` to create a manifest XML
> > file which has specific Git commit IDs for each project, commit
> > that to your manifest project, and then tag (or create a branch)
> > to that manifest file.
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
> > More info athttp://groups.google.com/group/repo-discuss?hl=en- Hide quoted text -
>
> - Show quoted text -
So I did a repo init from the mirror that I have created. In my local
repo I have .repo/manifests/default.xml which I update using the 'repo
manifest -r -o ...' commande after switching to 'my-tag...' branch. I
committed the change successfully. Now what command should I use to
push. Just git push does not work.
I don't want to create new branch for this, rather tag the branch that
I have. So, I guess, I can do git tag on the local commit and then
push. What would the command be to push to the branch that I was
working on and in the case I created a tag rather than a branch which
is what I think you are suggesting, would repo init -b still work on
my tag?
Thanks.
Try reading the manual page for git push, you are creating a new
branch, so you need to actually tell it what branches to operate on:
git push REMOTE BRANCH ...
> I don't want to create new branch for this, rather tag the branch that
> I have. So, I guess, I can do git tag on the local commit and then
> push. What would the command be to push to the branch that I was
> working on and in the case I created a tag rather than a branch which
> is what I think you are suggesting, would repo init -b still work on
> my tag?
No, repo init -b assumes a branch name, not a tag name. That's why
I was suggesting creating a branch here rather than a tag.
On Jan 28, 3:51 pm, Shawn Pearce <s...@google.com> wrote:
Thanks,
Dave
On Jan 28, 3:51 pm, Shawn Pearce <s...@google.com> wrote:
> bhupesh <bhupeshkha...@gmail.com> wrote:
> > So I did arepoinitfrom the mirror that I have created. In my local
> >repoI have .repo/manifests/default.xml which I update using the 'repo
> > manifest -r -o ...' commande after switching to 'my-tag...' branch. I
> > committed the change successfully. Now what command should I use to
> > push. Just git push does not work.
>
> Try reading the manual page for git push, you are creating a new
> branch, so you need to actually tell it what branches to operate on:
>
> git push REMOTE BRANCH ...
>
> > I don't want to create new branch for this, rather tag the branch that
> > I have. So, I guess, I can do git tag on the local commit and then
> > push. What would the command be to push to the branch that I was
> > working on and in the case I created a tag rather than a branch which
> > is what I think you are suggesting, wouldrepoinit-b still work on
> > my tag?
>
> No,repoinit-b assumes a branch name, not a tag name. That's why
> To this:
> '''
> cd .repo/manifests
> git checkout -b my-tag-name
> repo manifest -r -o default.xml
> '''
> After I try,I found that when under the directory of
> ".repo/manifests","repo manifest -r -o default.xml" will got a error
> of "xml.parsers.expat.ExpatError",so I have to go to the root
> directory of project,gen the default.xml and cp it to .repo/manifests.
Repo needs to read the manifest file, default.xml, in order to produce
the output file. Unfortunately Repo apparently opens the output file
(truncating it if it exists) before it reads the manifest file, so by
the time it tries to read the manifest file it is, of course, empty.
Do like this instead:
repo manifest -r -o default.xml.tmp && mv default.xml.tmp default.xml
[...]
--
Magnus B�ck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson