[issue1476] Mercurial crashes with b2a_hex error when committing

Andrew John Hughes mercurial-bugs at selenic.com
Mon Jan 19 17:49:13 CST 2009

New submission from Andrew John Hughes <gnu_andrew at member.fsf.org>:

$ hg commit
transaction abort!
rollback completed
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.1.2)
** Extensions loaded: convert, fetch
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in <module>
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 20, in run
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 29, in
    return _runcatch(u, args)
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 45, in
    return _dispatch(ui, args)
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 367, in
    ret = _runcommand(ui, options, cmd, d)
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 416, in
    return checkargs()
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 376, in
    return cmdfunc()
  File "//usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 361, in
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "//usr/lib64/python2.5/site-packages/mercurial/util.py", line 715, in check
    return func(*args, **kwargs)
  File "//usr/lib64/python2.5/site-packages/mercurial/commands.py", line 617, in
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File "//usr/lib64/python2.5/site-packages/mercurial/cmdutil.py", line 1189, in
    return commitfunc(ui, repo, message, m, opts)
  File "//usr/lib64/python2.5/site-packages/mercurial/commands.py", line 615, in
    match, force_editor=opts.get('force_editor'))
  File "//usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line 794,
in commit
    use_dirstate, update_dirstate)
  File "//usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line 857,
in _commitctx
    new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed)
  File "//usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line 723,
in filecommit
    self.ui.debug(_(" %s: copy %s:%s\n") % (fn, cf, hex(cr)))
TypeError: b2a_hex() argument 1 must be string or read-only buffer, not None

messages: 8436
nosy: gnu_andrew
priority: critical
status: unread
title: Mercurial crashes with b2a_hex error when committing

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list