Convert Svn to Hg: svn.core.SubversionException: 180001 - Unable to connect to a repository at URL 'file:///var/lib/svn/trunk/ascii2psql'

Ambarish Sridharanarayanan ambarish at ksharanam.net
Fri Dec 14 08:32:39 UTC 2012


I'm trying to convert my local Subversion repository over to Mercurial. I'm a basic Svn user and a novice Hg user. I'm trying this on Fedora 17, running:

* subversion-1.7.7-1.fc17.i686
* mercurial-2.2.3-1.fc17.i686
* python-2.7.3-7.2.fc17.i686

Please see transcript below. svn list works fine. Trying to convert the repo to hg gives me an error and also seems to leave behind some stale locks, as logged by a subsequent BerkeleyDB command. Thanks for any help!

$ svn ls file:///var/lib/svn/trunk/ascii2psql
ascii2psql.pm
client.pl
convert.pl
db_dumpindices.pl
newindex.pl
post-database-TODO
reinit
rename.pl
sample-queries.sql
schema.sql
song-unicode.pl

$ hg convert file:///var/lib/svn/trunk/ascii2psql
assuming destination ascii2psql-hg
scanning source...
sorting...
converting...
35 Initial revision
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.3 (default, Jul 24 2012, 10:05:39) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)]
** Mercurial Distributed SCM (version 2.2.3)
** Extensions loaded: convert
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 27, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 64, in dispatch
    return _runcatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 87, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 696, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 472, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 786, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 757, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 693, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 463, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/hgext/convert/__init__.py", line 269, in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/usr/lib/python2.7/site-packages/hgext/convert/convcmd.py", line 469, in convert
    c.convert(sortmode)
  File "/usr/lib/python2.7/site-packages/hgext/convert/convcmd.py", line 385, in convert
    self.copy(c)
  File "/usr/lib/python2.7/site-packages/hgext/convert/convcmd.py", line 327, in copy
    changes = self.source.getchanges(rev)
  File "/usr/lib/python2.7/site-packages/hgext/convert/subversion.py", line 406, in getchanges
    optrev(revnum), True, self.ctx)
  File "/usr/lib/python2.7/site-packages/libsvn/client.py", line 1976, in svn_client_ls
    return _client.svn_client_ls(*args)
svn.core.SubversionException: 180001 - Unable to connect to a repository at URL 'file:///var/lib/svn/trunk/ascii2psql'
180001 - Unable to open an ra_local session to URL
180001 - Unable to open repository 'file:///var/lib/svn/trunk/ascii2psql'
160029 - Berkeley DB error for filesystem '/var/lib/svn/db' while opening environment:

160029 - DB_RUNRECOVERY: Fatal error, run database recovery

$ rpm -q db4
BDB2053 Freeing read locks for locker 0x67a: 9945/3078109760
BDB2053 Freeing read locks for locker 0x67b: 9945/3078109760
BDB2053 Freeing read locks for locker 0x67c: 9945/3078109760
BDB2053 Freeing read locks for locker 0x67d: 9945/3078109760
db4-4.8.30-10.fc17.i686


More information about the Mercurial mailing list