2

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

  • svn server 1.6v
  • svn client 1.7v
Christian Gollhardt
  • 16,510
  • 17
  • 74
  • 111
iaav
  • 484
  • 2
  • 9
  • 26
  • Does not makes sense to me, or you have not provided all context info. For example, if you move file `a.txt` with change on `rev100` from `repo A` to `repo B` which has only 25 revisions, what would you expect to see? – Ivan Jovović May 01 '15 at 14:45

2 Answers2

2

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)

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
1

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.

David W.
  • 105,218
  • 39
  • 216
  • 337