Bug report

Tobias Dammers tdammers at gmail.com
Tue Nov 9 23:49:58 CST 2010


Using the convert extension, I received the following exception:

** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: convert
Traceback (most recent call last):
  File "/usr/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
27, in dispatch
    return _runcatch(u, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
43, in _runcatch
    return _dispatch(ui, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
501, in _runcommand
    return checkargs()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
454, in checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/var/lib/python-support/python2.5/mercurial/util.py", line 402, in check
    return func(*args, **kwargs)
  File "/var/lib/python-support/python2.5/hgext/convert/__init__.py",
line 232, in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/var/lib/python-support/python2.5/hgext/convert/convcmd.py",
line 395, in convert
    c.convert(sortmode)
  File "/var/lib/python-support/python2.5/hgext/convert/convcmd.py",
line 329, in convert
    self.copy(c)
  File "/var/lib/python-support/python2.5/hgext/convert/convcmd.py",
line 301, in copy
    self.source, self.map)
  File "/var/lib/python-support/python2.5/hgext/convert/hg.py", line
164, in putcommit
    self.repo.commitctx(ctx)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py",
line 931, in commitctx
    changed)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py",
line 777, in _filecommit
    self.ui.debug(_(" %s: copy %s:%s\n") % (fname, cfname, hex(crev)))
TypeError: b2a_hex() argument 1 must be string or read-only buffer, not None

The command was:
$ hg convert --filemap cantroid_filemap -A cantroid_usermap cantroid
cantroid_cleaned

Using:
$ hg --version
Mercurial Distributed SCM (version 1.3.1)

OS is debian/lenny x86, 2.6.32 bpo kernel.

The same conversion went flawlessly before, the only change I made was
adding the following 4 lines to the filemap:

exclude dbgen/backups/tdammers_topia.sql
exclude dbgen/backups/tdammers_cantroid.sql
exclude dbgen/backups/tdammers_cantroid_partial.sql
exclude dbgen/backups/tdammers_cantroid.sql.gz


More information about the Mercurial mailing list