Shawn,
Thank you ! I tried follow steps,
1. $ repo forall -c 'git checkout v2.0'
HEAD is now at 6d6c82c... auto import from //branches/
cupcake/...@125939
HEAD is now at e8a868f... Code drop from //branches/cupcake/...@124589
HEAD is now at a2bb8bf... Code drop from //branches/cupcake/...@124589
HEAD is now at 928d471... auto import from //branches/
cupcake/...@125939
HEAD is now at 7b92f48... Updated the INFO to not have a conditional
within the definition.
HEAD is now at 97ef525... Initial commit.
HEAD is now at cc05ad2... auto import from //branches/
cupcake/...@125939
HEAD is now at 95cf464... auto import from //branches/
cupcake/...@125939
HEAD is now at 17e798f... Code drop from //branches/cupcake/...@124589
...
2. $ repo forall -c 'if [ "`git describe 2>/dev/null`" != v2.0]; then
echo $REPO_PROJECT bad; fi'
platform/bionic bad
platform/bootable/bootloader/legacy bad
platform/bootable/diskinstaller bad
platform/bootable/recovery bad
platform/build bad
codesourcery/toolchain bad
platform/dalvik bad
platform/development bad
platform/external/aes bad
platform/external/apache-http bad
platform/external/bison bad
platform/external/bluez bad
platform/external/bsdiff bad
platform/external/bzip2 bad
...
Did I miss anything ?
Thanks,
Emily
On Feb 11, 11:35 pm, Shawn Pearce <
s...@google.com> wrote:
> The tags are downloaded at the same time because they are possibly "free".
> E.g., getting v2.0 probably implies you have all of the data needed for
> v1.0, so getting the v1.0 tag at the same time costs nothing. Its just the
> way git behaves by default.
>
> You just need to ensure you specify the right version when do the checkout.
> Which with repo can be done by setting the revision attribute in your
> default.xml.
>
> If you really want to verify it, run a git describe in the project, e.g.:
>
> repo forall -c 'if [ "`git describe 2>/dev/null`" != v2.0 ]; then echo
> $REPO_PROJECT bad; fi'
>
> On Tue, Feb 10, 2009 at 23:55,
lingyan....@gmail.com
> <
lingyan....@gmail.com>wrote:
>
>
>
>
>
> > Shawn,
>
> > I have another question, in my manifest.xml, I specify to get source
> > of tag v2.0.
>
> > When I do repo sync, it shows that not only tag v2.0, but also tags
> > v1.0, v3.0 are gotten at the same time.
>
> > I want to build on source code with tag v2.0. How can I ensure current
> > source code I'll build are all with tag v2.0, not v1.0/v3.0 ?
>
> > Thanks,