bzr status -c tip:N crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr-tiplog |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I can reproduce this crash in any bzr branch. The example below is from bzr-tiplog's own trunk. As can be seen, bzr correctly displays the files affected by the referenced revision, but then crashes:
D:\usr\
modified:
__init__.py
log.py
bzr: ERROR: exceptions.
ribute 'branch'
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "C:/Program Files/Bazaar/
m_summary
AttributeError: 'InventoryRevis
bzr 2.5b4 on python 2.6.6 (Windows-
arguments: ['bzr', 'st', '-c', 'tip:1']
plugins: bisect[1.1.0dev], bzrtools[2.4.1], changelog_
colo[0.3.1dev], encdiff[1.0.0], explorer[1.1.0], fastimport[
git[0.6.6dev], grep[0.4.0], history_
launchpad[
news_
svn[1.1.1], tiplog[0.0.5dev], upload[1.0.1dev], xmloutput[0.8.8]
encoding: 'cp1255', fsenc: 'mbcs', lang: None
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
Changed in bzr-tiplog: | |
status: | New → Invalid |
I don't think this is a tiplog problem but more a loom problem, since tiplog doesn't appear in the backtrace. You can probably trigger it by:
$ bzr tiplog --show-ids
$ bzr status -c XXXX
where XXXX is the corresponding revid to tip:1.
`
I don't know how loom works exactly, but my guess is that a change to a loom may result in a number of commits underneath the hood. With tiplog's current implementation, each of those intermediate commts will be recorded separately. And it may well be that loom's internal structure isn't meant to answer 'status' type queries.
I have a merge proposal to add bzr command-level hooks, so that tiplog can log tip changes based on semantically- meaningful boundaries. That should avoid this type of error.