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?
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.
It seems this post has an answer: basically, you must not start with clone, but init and fetch. Did not try it myself (yet)...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With