Saturday, March 04, 2006


Moving a Folder Across SVN Repositories

Sometimes we may want to transfer a directory from one subversion repository to another without losing any revision history. This can be dones using svnadmin dump and load with svndumpfilter. The following commands will create the directory /folder/to/move/ in the target repository.

svnadmin dump /path/to/sourcerepo/ | svndumpfilter include /folder/to/move/ > dumpfile
svnadmin load /path/to/targetrepo/ < dumpfile

This creates the folder /folder/to/move/ in targetrepo, and there is no simple way (except probably by editing the dumpfile manually) to instruct it to create only the folder /move/.

svndumpfilter does not filter out empty revisions. Hence, one may like to add options --drop-empty-revs --renumber-revs to svnadmin load to drop empty revisions and adjust revision numbers when an empty revision is dropped. More information about administration utilities in svn can be found at the red book.

Brilliant - It was extremely hard to find this info and this worked perfectly.
Ditto as George. However (with SVN 1.6 at least) the --drop-empty-revs and --renumber-revs options are on svndumpfilter, not svnadmin load as stated in the post. Thanks for this tip!!
I am sorry...Its not as easy as he has written.. You need to check all links and include them also otherwise svn will shoot out an error as "path not found". I had got this error and to avoid it i had to do the other way round using exclude !!
This command is exactly what I was looking for, made my job a lot easier :) Thanks dude!
Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa
thank you! It works!
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?