Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Svn Fetch More Revisions

Tags:

git

git-svn

I am using git-svn for our svn repository. However, the repo is huge, so I first checked out the project like so:

git svn clone svn://svn.server.com/project -s -r 12000:HEAD

So, now I have only revisions 12000 to the current revision. I would like to checkout some more revisions, but the following does nothing:

git svn fetch -r 11000:HEAD

Is there a way to fetch older revisions?

like image 405
Verhogen Avatar asked Nov 24 '09 07:11

Verhogen


2 Answers

I don't think this is really supported, doing so would rebase the entire repository which would generally be considered a bad thing. (Although pure git is more than happy to let you shoot yourself in the foot by doing this) I don't see a way to do this, even after fiddling with the data in .git/svn. You can checkout older revisions of branches and tags you haven't retrieved, but once you retrieve a branch, you can't go back and grab even more history.

I waited 6 hours for a 50k revision repo to clone, so I know your pain. If you really want that much history, I suggest just letting it run overnight and grab the entire thing.

like image 144
NUXI Avatar answered Sep 28 '22 21:09

NUXI


It seems this post has an answer: basically, you must not start with clone, but init and fetch. Did not try it myself (yet)...

like image 41
Xavier Nodet Avatar answered Sep 28 '22 22:09

Xavier Nodet