This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • svn import experience
Skip to end of metadata
Go to start of metadata


  • on OOO340
    • trunk only
    • 276930 revision
    • until 263206 linear revisions only
  • svn / hg / git servers and clients on the same machine.






from hg 0 rev with Mercurial convert tool

Try with Mercurial 1.9 following and also try with the --splicemap

Get a python error. No sufficient knowledge in py to invest.


from hg 0 rev

use this script for converting from hg to svn. works with no problem up to 800.

250 commits / hour -> 1040 hours -> 40 days (4)


form hg rev 276900 to end

use the same script (1), works well, same perf after first commit

Just a little hack to do (2). Not diff beetween hg and svn repo at the end (3)



from hh rev 0

use this script. No error so far,




wait the end of hg2git translation for testing. Will try this and/or this


(1) to start from any revision : change the value of START_REV=276900.
(2) when first imports done, svn commands complain about ...don't remember exact message... file men.
Then just open another shell and : $svn add extras/source/gallery/www-graf/men@work.gif@ and it's ok.
(3) $ diff -r svn-repos/ hg-repos/ > diff-result
$ cat diff-result | grep -v ".svn"
relevant results only show 2 empty folders in svn repos that are not still present in hg one :
(4) most time spending in script is on searching folder to remove.

Machine configuration for this test

$ head /proc/cpuinfo
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
stepping : 10
cpu MHz : 3003.000
cache size : 6144 KB

$ head /proc/version
Linux version 2.6.32-27-generic (buildd@crested) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010

$ head /proc/meminfo
MemTotal: 4057716 kB

  • No labels