Traceback from 'bzr log -r0'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I wouldn't really expect 'bzr log -r0' to work, but it shouldn't give an ugly
traceback.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/Users/
run_bzr_
return run_bzr(argv)
File "/Users/
ret = run(*run_argv)
File "/Users/
run_argv_aliases
return self.run(
File "/Users/
ignore_pipe
result = func(*args, **kwargs)
File "/Users/
limit=limit)
File "/Users/
start_revision, end_revision, search, limit)
File "/Users/
end_rev_id)
File "/Users/
_filter_
start_index = revision_
ValueError: list.index(x): x not in list
bzr 0.91.0dev0 on python 2.4.3.final.0 (darwin)
arguments: ['/Users/
Note, we also get bad tracebacks like this from:
bzr log --short -r revid:not-
affects /products/bzr
status triaged
importance medium
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://
iD8DBQFGygeFJde
9RmXo8+
=5hjp
-----END PGP SIGNATURE-----
Changed in bzr: | |
assignee: | nobody → warthog618 |
status: | Triaged → In Progress |
Changed in bzr: | |
status: | In Progress → Fix Committed |
Changed in bzr: | |
milestone: | none → 1.0rc1 |
status: | Fix Committed → Fix Released |
This seems to be introduced by:
2733 Canonical.com Patch Queue Manager 2007-08-20 [merge]
NULL_REVISION is returned to indicate the null revision, not None
bzr <0.17 gives:
bzr: ERROR: Invalid revision number 0
bzr 0.18, and 0.90rc1 treat '0' as though you didn't specify a value (as None). So
bzr log -r 0..10
is the same as
bzr log -r ..10
Unfortunately that means that
bzr log -r 0
Actually gives you the whole history
(It is equivalent to bzr log, or bzr log -r .., or bzr log -r 0..0)
bzr.dev after 2733 gives a index lookup failure, along with traceback.