Search code examples
svngit-svn

clone svn repo with full history to local disk


I am in the process of "moving" some very large repo's from svn to git. I know how to do it, but I need to speed up the process.

To save I/O I would like to move the svn repo to a linux box and run the conversion there.

I found this article How to Mirror a Subversion Repository and the recommended command is this one:

svnadmin hotcopy REPOS_PATH NEW_REPOS_PATH

I will execute the command on the svn server and then copy it to my local disk. Do I need a svn server to access the repository? or can I:

svn git clone my-local-repo to-my-new-git-repo 

Any tips on speeding up "git svn clone" are much appreciated

I know there a many, many questions on moving svn to git but this is about moving the svn repo to local disk before the cloning.


Solution

  • Subversion provides always a local access by using a file:// URL. This is also the smallest footprint I/O and memory wise as only the svn-client is invoked. Also this is the fastest access to a (svn)repository.

    See here for more details

    On moving repositories across servers see also this