[BUG] extension load weirdness with remote hg

Benoit Boissinot bboissin at gmail.com
Fri Sep 30 18:06:37 CDT 2005


i you put the following in your .hgrc:

[extensions]
empty=/home/tonfa/dev/hg-bisect/contrib/empty.py

with empty.py containing only 'pass'

hg pull ssh://localhost/path-to-repo gives the following traceback:

pulling from ssh://tonfa@localhost/tmp/linux-2.6
searching for changes
abort: unexpected response ''!
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hg", line 13, in ?
remote:     commands.run()
remote:   File "/usr/lib/python2.4/site-packages/mercurial/commands.py",
line 2010, in run
remote:     sys.exit(dispatch(sys.argv[1:]))
remote:   File "/usr/lib/python2.4/site-packages/mercurial/commands.py",
line 2071, in dispatch
remote:     for t in x.cmdtable:
remote: AttributeError: 'module' object has no attribute 'cmdtable'

if there is a cmdtable but no reposetup, you will have the following traceback:
pulling from ssh://tonfa@localhost/tmp/linux-2.6
searching for changes
abort: unexpected response ''!
remote: ** unknown exception encountered, details follow
remote: ** report bug details to mercurial at selenic.com
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hg", line 13, in ?
remote:     commands.run()
remote:   File "/usr/lib/python2.4/site-packages/mercurial/commands.py",
line 2010, in run
remote:     sys.exit(dispatch(sys.argv[1:]))
remote:   File "/usr/lib/python2.4/site-packages/mercurial/commands.py",
line 2134, in dispatch
remote:     x.reposetup(u, repo)
remote: AttributeError: 'module' object has no attribute 'reposetup'


There is something weird with getattr/hasattr...

regards,

Benoit Boissinot



More information about the Mercurial mailing list