You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Miah, W (Wadud)" <W....@rl.ac.uk> on 2008/10/01 08:33:59 UTC

Moving files from one repository to another

I have two Subversion repositories and would like to retire one, only
after I've moved over the files with the entire revision history to the
new one. What process needs to be followed to achieve this?

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Moving files from one repository to another

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 1, 2008, at 3:33 AM, Miah, W (Wadud) wrote:

> I have two Subversion repositories and would like to retire one, only
> after I've moved over the files with the entire revision history to  
> the
> new one. What process needs to be followed to achieve this?

There are two ways.

1. "svnadmin dump" the old repository and "svnadmin load" it into the  
new repository. Disadvantages: revisions of the old repository will  
be renumbered to fit into the new repository, so any references to  
revision numbers in the old repository's log messages will be  
inaccurate. You will have to throw away any working copies of the old  
repository and check those paths out anew from the new repository  
instead. Finally, the newly added revisions will probably cause the  
new repository's revisions to not all be in chronological order,  
which means you can't use the "-r{date}" revision syntax. If you care  
about the date revision syntax, try method 2:

2. "svnadmin dump" both existing repositories. Use "svndumptool.py  
merge" [1] to combine the two dumpfiles in chronological order.  
"svnadmin create" a new repository and "svnadmin load" the merged  
dumpfile into it. Disadvantages: pretty much all revisions will be  
renumbered, so any references to revision numbers in your log  
messages from either existing repository will be inaccurate. And you  
will need to throw away working copies of either repository and check  
out new ones.


[1] http://svn.borg.ch/svndumptool/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org