[issue433] parents on unknown revision raises an unhandled TypeError
Marcos Chaves
mercurial-bugs at selenic.com
Sun Nov 26 12:04:11 UTC 2006
New submission from Marcos Chaves <marcos.nospam at gmail.com>:
Tip is e674cae8efee. Unless you have a 'does-not-exist.txt' file on r1234, an
unhandled TypeError is raised:
$ ./hg parents -r 1234 does-not-exist.txt
Traceback (most recent call last):
File "./hg", line 12, in <module>
commands.run()
File "/home/marcos/test-repo/mercurial/commands.py", line 2741, in run
sys.exit(dispatch(sys.argv[1:]))
File "/home/marcos/test-repo/mercurial/commands.py", line 2964, in dispatch
return d()
File "/home/marcos/test-repo/mercurial/commands.py", line 2923, in <lambda>
d = lambda: func(u, repo, *args, **cmdoptions)
File "/home/marcos/test-repo/mercurial/commands.py", line 1609, in parents
p = [cp.node() for cp in ctx.parents()]
File "/home/marcos/test-repo/mercurial/context.py", line 213, in parents
pl = [(p, n, fl) for n in self._filelog.parents(self._filenode)]
File "/home/marcos/test-repo/mercurial/revlog.py", line 480, in parents
r = self.rev(node)
File "/home/marcos/test-repo/mercurial/revlog.py", line 475, in rev
raise RevlogError(_('%s: no node %s') % (self.indexfile, hex(node)))
File "/home/marcos/test-repo/mercurial/node.py", line 17, in hex
return binascii.hexlify(node)
TypeError: b2a_hex() argument 1 must be string or read-only buffer, not None
----------
messages: 2443
nosy: mchaves
priority: bug
status: unread
title: parents on unknown revision raises an unhandled TypeError
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue433>
____________________________________________________
More information about the Mercurial-devel
mailing list