iaav
iaav

Reputation: 466

Move file from one repository to another with history in svn

How to move a file from one repository to another repository preserving history in subversion?

Upvotes: 2

Views: 2005

Answers (2)

Lazy Badger
Lazy Badger

Reputation: 97395

Follow-up to David's answer

With svnrdump dump you can get dump from any remote repository and for any URL inside it (which also can be URL of single file), which can be extracted to new repository with svnadmin load (local repo) or svnrdump load (remote repo)

Upvotes: 2

David W.
David W.

Reputation: 107090

To move history in Subversion, you have to dump and load the repository. The svnadmin dump will dump out a repository in a standard text-format. Then, you can use svnadmin load to load the text-dump into another repository. These commands use pipes and redirects, so it's possible to run svnadmin dump directly into a svnadmin load. You can also use svndumpfilter to filter out the revisions you don't want.

For these commands to work, you need to be on the Subversion repository server.

Upvotes: 1

Related Questions