[issue903] 'backout' crashes when called without argument

Alexandre Vassalotti mercurial-bugs at selenic.com
Sat Dec 29 21:17:27 CST 2007


New submission from Alexandre Vassalotti <alexandre at peadrop.com>:

The title says it all. 

% hg backout
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.4)
Traceback (most recent call last):
  File "/usr/bin/hg", line 11, in <module>
    mercurial.commands.run()
  File "/var/lib/python-support/python2.5/mercurial/commands.py", line 3110, in run
    sys.exit(dispatch(sys.argv[1:], argv0=sys.argv[0]))
  File "/var/lib/python-support/python2.5/mercurial/commands.py", line 3107, in
dispatch
    return cmdutil.runcatch(u, args, argv0=argv0)
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 37, in
runcatch
    return dispatch(ui, args, argv0=argv0)
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 364, in
dispatch
    ret = runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 417, in
runcommand
    return checkargs()
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 373, in
checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 356, in
<lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/var/lib/python-support/python2.5/mercurial/commands.py", line 176, in
backout
    node = repo.lookup(rev)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 363, in
lookup
    n = self.changelog._match(key)
  File "/var/lib/python-support/python2.5/mercurial/revlog.py", line 768, in _match
    if len(id) == 20:
TypeError: object of type 'NoneType' has no len()

----------
messages: 4741
nosy: alexandre.vassalotti
priority: bug
status: unread
title: 'backout' crashes when called without argument

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue903>
____________________________________________________



More information about the Mercurial-devel mailing list