hg convert from SVN repo getting stuck

Malte Helmert malte.helmert at unibas.ch
Sat Apr 26 17:36:43 UTC 2014


Dear group,

I'm having some problems with hg convert:

$ hg version
Mercurial Distributed SCM (version 2.8.2)
...

$ hg convert svn-repo converted-hg-repo
initializing destination converted-hg-repo repository
scanning source...
sorting...

converting...
989 [some log message]
988 [some other log message]
...
512 [another log message]
converting [========================>                           ]
477/990 1h30m

The process seems to get stuck at this point; I've been waiting for
several hours. The progress counter doesn't move and the remaining time
estimate doesn't update. The hg process is at ~400 MB memory usage and
99% CPU usage.

I tried a separate conversion with --verbose --debug, and it gets stuck
at the same point. Interrupting it with Ctrl-C doesn't work either, so
my best guess is that it's stuck in C code somewhere.

The revision in question modified two files. One of the two changes is a
small change to a small file. The other is a large change to a large
file. The file has 35 MB, and the svn diff output for the change has 16
MB in 10,000s of separate hunks.

Any suggestions?

Ideally, I'd like to complete the conversion of the repository as is,
even if it takes a while. But for this it would be good to know if I
should expect to wait three hours, a few days, or forever. Anything that
could help diagnose what is going on would be appreciated. (I don't mind
looking into Python or C code for this.)

Malte




More information about the Mercurial mailing list