Reputation: 9151
I am studying a large software project and how it evolved. I have access to the subversion repository to analyze the code but I would like to have a copy of this repository on my machine. I want to do this so I'm not hanging on the production svn and also because I'm assuming it would be faster for me to work against a local repo than a remote one.
So, two questions:
Upvotes: 1
Views: 415
Reputation: 4359
You can create a local (read-only) mirror of the complete repository using svnsync.
The necessary steps are explained in the svn-book. The basic steps are:
# Create a local mirror repository.
svnadmin create local_mirror
# Create pre-revprop-change hook.
echo > local_mirror\hooks\pre-revprop-change.cmd
# Associate local mirror with remote repository.
svnsync init local_mirror repo_url
# Sync the repositories.
svnsync sync local_mirror
While using another VCS like git would work too, this allows you to use your svn tools as usual. Besides, in order to estimate the size of the repository you will need the same storage algorithms. Each VCS has its own way of storing stuff if you use another than svn the size of your local repo will most likely not match the size of the original repo.
Upvotes: 3
Reputation: 7850
Assuming you won't be committing locally, I would recommend you setup a local mirror of the SVN repository in question using svnsync. There is a how-to here and it seems it can mirror the SVN structure to your local machine.
Thus:
Upvotes: 1
Reputation: 9382
You can use "svnsync" to replicate a remote repository.
See the documentation here.
Upvotes: 1
Reputation: 993881
You can use git svn clone
to get a local Git repository, including the whole history.
Upvotes: 2