Skip to contentSkip to conversation

Obtaining old SVN revision

Buildroot Will Wagner 3 participants 5 messages May 13, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello all,

Following the transition to git how can I checkout buildroot to a specific SVN revision?

I had hoped that the SVN repository would remain read only for a while but it seems to have gone away. Presumably I can clone git and then checkout back to the revision I want, I'm just not sure how to specify that in git. Do I just have to work out what date the SVN revision was?

Will

Signature · 5 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Will" == Will Wagner <[email protected]> writes:

Will> Hello all,

Will> Following the transition to git how can I checkout buildroot to Will> a specific SVN revision?

Will> I had hoped that the SVN repository would remain read only for a while Will> but it seems to have gone away. Presumably I can clone git and then Will> checkout back to the revision I want, I'm just not sure how to specify Will> that in git. Do I just have to work out what date the SVN revision Will> was?

Hmm, that's a mistake - svn should continue to work (read only). I'll check with the osuosl.org guys. We don't have any links with the correspondence between svn and git revisions, but I still have my git-svn tree, so if you give me the svn rev, then I'll look up the corresponding git revision.

You can checkout older git revisions with git checkout <rev>. Normally you can also use the date based syntax (see man git-rev-parse) like:

git show @{2009-05-01}, but the commit dates are not correct for the pre-git commits.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cyril" == Cyril HAENEL <[email protected]> writes:

Hi,

Cyril> I was using svn too but last week I tried the last git version and Cyril> everything is OK for my application (arm based).
Cyril> How can I know the revision number it is to be able to come back to it Cyril> in some week for example ?

You can see the latest version of your tree using git show (before you run git pull to get updates), and the information also gets stored in your rootfs (in /etc/br-version).

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 7 lines

You can see the latest version of your tree using git show (before you run git pull to get updates), and the information also gets stored in your rootfs (in /etc/br-version).

"git show" give me a lot of thing but nothing which seems to be a revision number. Or it's the first line ?
commit _61aeb6e484041f4bcc399c3eff2702d5464fb8b3_ ?

Thus if I want in some week to download a fresh buildroot with this revision, I do
git clone 61aeb6e484041f4bcc399c3eff2702d5464fb8b3
http://git.buildroot.net/buildroot
?

Signature · 2 lines
Cyril Haenel
Registered Linux User #332632
#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cyril" == Cyril HAENEL <[email protected]> writes:

Cyril> "git show" give me a lot of thing but nothing which seems to be a Cyril> revision number. Or it's the first line ?
Cyril> commit _61aeb6e484041f4bcc399c3eff2702d5464fb8b3_ ?

Yes. You can get a more readable alias by 'git describe'

Cyril> Thus if I want in some week to download a fresh buildroot with this Cyril> revision, I do

No, just git clone like always, and then git checkout 61aeb6e484041f4b

See the git documentation for details: http://git-scm.com/documentation

Signature · 1 line
Bye, Peter Korsgaard