[Bug 4172] New: hg recover aborts with "unknown exception encountered"

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Feb 17 05:48:29 CST 2014


http://bz.selenic.com/show_bug.cgi?id=4172

          Priority: normal
            Bug ID: 4172
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg recover aborts with "unknown exception encountered"
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: bugzilla at mcsmurf.de
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.9
         Component: Mercurial
           Product: Mercurial

My PC had a fatal hang while it did a "hg pull" or an "hg update" (not really
sure) from http://hg.mozilla.org/mozilla-central. I now tried to run "hg
recover", but unfortunately this fails with an unknown exception:
~/mercurial-2.9/hg recover
rolling back interrupted transaction
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3]
** Mercurial Distributed SCM (version 2.9)
** Extensions loaded: strip, mq
Traceback (most recent call last):
  File "/home/frank/mercurial-2.9/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 69, in dispatch
    ret = _runcatch(req)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 134, in
_runcatch
    return _dispatch(req)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 806, in
_dispatch
    cmdpats, cmdoptions)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 586, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 897, in
_runcommand
    return checkargs()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 868, in
checkargs
    return cmdfunc()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 803, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/hgext/mq.py", line 3381, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/commands.py", line 4754, in recover
    if repo.recover():
  File "/home/frank/mercurial-2.9/mercurial/localrepo.py", line 865, in recover
    self.ui.warn)
  File "/home/frank/mercurial-2.9/mercurial/transaction.py", line 177, in
rollback
    f, o = l.split('\0')
ValueError: need more than 1 value to unpack
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in
apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 111, in
_demandimport
    return _hgextimport(_import, name, globals, locals, fromlist, level)
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 43, in
_hgextimport
    return importfunc(name, globals, *args)
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in
<module>
    from apport.report import Report
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 130, in
_demandimport
    mod = _hgextimport(_origimport, name, globals, locals)
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 43, in
_hgextimport
    return importfunc(name, globals, *args)
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 155, in
<module>
    class Report(problem_report.ProblemReport):
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 102, in
__getattribute__
    self._load()
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 74, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/home/frank/mercurial-2.9/mercurial/demandimport.py", line 43, in
_hgextimport
    return importfunc(name, globals, *args)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 93, in
<module>
    class ProblemReport(UserDict):
TypeError: Error when calling the metaclass bases
    module.__init__() takes at most 2 arguments (3 given)

Original exception was:
Traceback (most recent call last):
  File "/home/frank/mercurial-2.9/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 69, in dispatch
    ret = _runcatch(req)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 134, in
_runcatch
    return _dispatch(req)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 806, in
_dispatch
    cmdpats, cmdoptions)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 586, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 897, in
_runcommand
    return checkargs()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 868, in
checkargs
    return cmdfunc()
  File "/home/frank/mercurial-2.9/mercurial/dispatch.py", line 803, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/hgext/mq.py", line 3381, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/home/frank/mercurial-2.9/mercurial/commands.py", line 4754, in recover
    if repo.recover():
  File "/home/frank/mercurial-2.9/mercurial/localrepo.py", line 865, in recover
    self.ui.warn)
  File "/home/frank/mercurial-2.9/mercurial/transaction.py", line 177, in
rollback
    f, o = l.split('\0')
ValueError: need more than 1 value to unpack

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list