相忘于江湖

泉涸,鱼相与处于陆,相呴以湿,相濡以沫,不如相忘于江湖。《庄子.大宗师篇》

svn2svn.py

Thursday Aug 16, 2007

There's not a good tool to replicate Subversion repository yet.

Although it's easy to use 'svnadmin dump' in server side to replicate the Subversion repositories. But most of the case, we don't have the privilege to access to Subversion server.

There's a client side tool svn2svn.rb though, which is written in ruby. But I don't like the way it works: check out each revision separately, commit back the output from cmd 'diff -Naur [rev-1] [rev]'. This would require a huge amount of disk space when there are lots of revisions and each revision is quite large (my case: 3400+ revisions, 2GB each revision from rev 2000 and on).

So I decided to write a new tool myself. After searching on Internet, I found a related tool: hgsvn, which create Mercurial repositories from Subversion repositories. It's written in Python. There are several modules in svnclient.py are re-usable for my svn2svn tool. So I created svn2svn.py based on it.

Hope I'm not reinventing the wheel. More information can be found from project page:
http://code.google.com/p/svn2svn/


[9] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

I thought there was svnsync to take care of that task - http://svn.collab.net/repos/svn/trunk/notes/svnsync.txt

Posted by Mads on August 17, 2007 at 01:31 AM CST #

Hi Mads, svnsync can only create read-only repository. and it requires the source repository is running on svn 1.4 or later version, but most of the existing repositories running on older version of svn.

Posted by simford on August 17, 2007 at 09:27 AM CST #

Simford, it's so cool! We should have a TOI session, shouldn't we? ;)

Posted by Yong Sun on August 19, 2007 at 05:29 PM CST #

thank you, yongsun!

Posted by simford on August 20, 2007 at 09:23 AM CST #

Hi. Do you know why:

File "./svn2svn-0.1.1.py", line 624
finally:
^
SyntaxError: invalid syntax

I have python 2.4.4 ....

Posted by bon on September 17, 2008 at 01:05 AM CST #

www.23kings.com is a professional Air Jordan shoes, <a href=http://www.23kings.com>Nike shoes</a>, <a href=http://www.23kings.com>Jordan Shoes</a> online store, we sell cheap Air Jordan Shoes, <a href=http://www.23kings.com>Nike Shoes</a>, Jordan Shoes since 2003, and our <a href=http://www.23kings.com>Air Jordan</a>, Nike Shoes are in good quality and come with original <a href=http://www.23kings.com>jordan shoes</a> boxes, we get new nike shoes, jordan shoes as soon as new air jordan is released.

Posted by 23kings.com on October 26, 2008 at 03:11 AM CST #

sell Aion cd key

Posted by sell Aion cd key on October 13, 2009 at 09:22 AM CST #

maple story meso

Posted by maple story meso on October 13, 2009 at 09:23 AM CST #

wow gold kaufen

Posted by wow gold kaufen on October 13, 2009 at 09:23 AM CST #

Post a Comment:
  • HTML Syntax: NOT allowed