[issue1144] Crash when trying to verify a bundle

Antoine mercurial-bugs at selenic.com
Tue May 27 14:26:12 CDT 2008

New submission from Antoine <pitrou at free.fr>:

The exception suggests the functionality is not implemented, but there is also a
strange ImportError at the end (although shutil is a standard module), so I
though I'd report this. It's a straight Python 2.4 installation on a Debian
stable, with Mercurial installed from source.

$ hg verify -R etc.bundle 
checking changesets
** 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.0.1)
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in ?
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 20, in run
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 29, in
    return _runcatch(u, args)
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 45, in
    return _dispatch(ui, args)
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 364, in
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 417, in
    return checkargs()
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 373, in
    return cmdfunc()
  File "/usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 356, in
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 2812, in
    return hg.verify(repo)
  File "/usr/lib/python2.4/site-packages/mercurial/hg.py", line 312, in verify
    return _verify.verify(repo)
  File "/usr/lib/python2.4/site-packages/mercurial/verify.py", line 15, in verify
    return _verify(repo)
  File "/usr/lib/python2.4/site-packages/mercurial/verify.py", line 72, in _verify
    checksize(repo.changelog, "changelog")
  File "/usr/lib/python2.4/site-packages/mercurial/verify.py", line 47, in checksize
    d = obj.checksize()
  File "/usr/lib/python2.4/site-packages/mercurial/bundlerepo.py", line 135, in
    raise NotImplementedError
Exception exceptions.ImportError: 'No module named shutil' in <bound method
mqrepo.__del__ of <hgext/mq.mqrepo object at 0xb7a172cc>> ignored

messages: 6111
nosy: pitrou
priority: bug
status: unread
title: Crash when trying to verify a bundle

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

More information about the Mercurial-devel mailing list