getting specified tag by using repo

16,338 views
Skip to first unread message

allstars

unread,
May 12, 2009, 11:30:30 AM5/12/09
to Repo and Gerrit Discussion
hello world

i try to use repo to get tag

for example
i try to get following tag from dalvik
http://android.git.kernel.org/?p=platform/dalvik.git;a=commit;h=6cd260394003a1399cdfdbf66e602d127c05d3d5


i try to do with
$>repo init -u git://android.git.kernel.org/platform/dalvik.git -b
6cd260394003a1399cdfdbf66e602d127c05d3d5

but i will get
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found

am i doing something wrong here??

Shawn Pearce

unread,
May 12, 2009, 12:15:10 PM5/12/09
to repo-d...@googlegroups.com
On Tue, May 12, 2009 at 08:30, allstars <allsta...@gmail.com> wrote:

i try to use repo to get tag

for example
i try to get following tag from dalvik
http://android.git.kernel.org/?p=platform/dalvik.git;a=commit;h=6cd260394003a1399cdfdbf66e602d127c05d3d5


i try to do with
$>repo init -u git://android.git.kernel.org/platform/dalvik.git -b
6cd260394003a1399cdfdbf66e602d127c05d3d5

Use instead:

$ repo init -u git://android.git.kernel.org/platform/manifest.git -b android-sdk-1.5_r1
$ repo sync dalvik

Or, just use git directly, if you only care about that one project:

$ git clone git://android.git.kernel.org/platform/dalvik.git
$ cd dalvik
$ git checkout android-sdk-1.5_r1

allstars

unread,
May 12, 2009, 12:23:34 PM5/12/09
to Repo and Gerrit Discussion
Dear Shawn

so only using repo cannot be used to get particular tag, right?

and $>repo help init
says

-b REVISION, --manifest-branch=REVISION
manifest branch or revision


i am not sure what 'revision' means
i thought it means the commit

thanks

On May 13, 12:15 am, Shawn Pearce <s...@google.com> wrote:
> On Tue, May 12, 2009 at 08:30, allstars <allstars....@gmail.com> wrote:
>
> > i try to use repo to get tag
>
> > for example
> > i try to get following tag from dalvik
>
> >http://android.git.kernel.org/?p=platform/dalvik.git;a=commit;h=6cd26...

Shawn Pearce

unread,
May 12, 2009, 12:26:38 PM5/12/09
to repo-d...@googlegroups.com
On Tue, May 12, 2009 at 09:23, allstars <allsta...@gmail.com> wrote:

so only using repo cannot be used to get particular tag, right?

You can only get a branch from the manifest repository.  As it happens, there is a branch named the same name as the tag.
 
and $>repo help init
says

 -b REVISION, --manifest-branch=REVISION
               manifest branch or revision

i am not sure what 'revision' means
i thought it means the commit

Yea, here it unfortunately is limited to a branch name from the manifest repository.

Naseer Ahmed

unread,
May 13, 2009, 8:17:07 AM5/13/09
to Repo and Gerrit Discussion
There is a bug filed for this - http://jira.source.android.com/jira/browse/REPO-32
Hopefully it can be fixed soon. Going back to older releases by tag is
a basic functionality.
For now we are using various workaround scripts to solve the issue.



On May 12, 9:26 pm, Shawn Pearce <s...@google.com> wrote:

Janne

unread,
May 13, 2009, 5:05:35 PM5/13/09
to Repo and Gerrit Discussion
Basically, I use repo manifest -o to generate a manifest version with
commit sha1s in it instead of branches. In essense this manifest is a
kind of super tag as it names a commit in each repository you want to
manage, not just one.

If the manifest specifies branches, it instead works as a super branch
and you can even mix this for different repositories.


On May 13, 2:17 pm, Naseer Ahmed <naseer.ah...@gmail.com> wrote:
> There is a bug filed for this -http://jira.source.android.com/jira/browse/REPO-32
> Hopefully it can be fixed soon. Going back to older releases by tag is
> a basic functionality.
> For now we are using various workaround scripts to solve the issue.
>

I am curious,what use case are you solving with your scripts?

Renaud Mathieu

unread,
Oct 28, 2013, 10:06:16 AM10/28/13
to repo-d...@googlegroups.com

I figured it out. If your have a tag in a manifest file (version.xml for example). You can repo init to a specific tag with the following command:

repo init -u <addres> -b refs/tags/<tagname> -m version.xml

Reply all
Reply to author
Forward
0 new messages