Reputation:
I'd like to know if there is an easy way to duplicate a subversion repository without having access to the filesystem. Meaning that I have read-only access with the HTTP interface.
Basically, I'd like to have my own locally-hosted copy of a repository for an open-source project. They provide anonymous access to the subversion repo as usual.
I've looked through the docs, and I guess my Google-fu is good enough because I couldn't find any reference to doing something like this.
So basically I want to download all the revisions, and be able to import them into my own repo using svnadmin.
Upvotes: 5
Views: 2155
Reputation: 123513
I think you're wanting svnsync
:
svnadmin create /localsvn
svnsync init file:///localsvn http://domain/svn
svnsync sync file:///localsvn
You'll have to enable the pre-revprop-change
hook in your local repository or svnsync
will complain.
But, just repeat the last command as necessary.
Note that svnsync
commands require URL arguments.
Upvotes: 7