clicking on a parent/children revision in qlog fails
Bug #247820 reported by
Lukáš Lalinský
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Fix Released
|
Medium
|
Gary van der Merwe |
Bug Description
If I click on any link in "Parents:" or "Children:", it fails with:
Traceback (most recent call last):
File "/home/
self.
File "/home/
branch_id = self.branch_
TypeError: 'set' object is unindexable
Changed in qbzr: | |
assignee: | nobody → garyvdm |
importance: | Undecided → Medium |
milestone: | none → 0.9.2 |
Changed in qbzr: | |
status: | New → Fix Committed |
Changed in qbzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
=== modified file 'lib/logmodel.py' msri[revid] sorted_ revisions[ rev_msri] [3][0:- 1] branch_ visible( branch_ id, True, False) visible_ child(branch_ id): lines[branch_ id][3][ 0] branch_ visible( branch_ id, True, False) visible_ child(branch_ id): lines[branch_ id][3][ 0] branch_ visible( branch_ id, True, False)
self. compute_ lines()
--- lib/logmodel.py 2008-06-11 11:51:51 +0000
+++ lib/logmodel.py 2008-07-12 09:15:51 +0000
@@ -646,9 +646,10 @@
rev_msri = self.revid_
branch_id = self.merge_
has_change = self._set_
- while not self._has_
- branch_id = self.branch_
- has_change = self._set_
+ if branch_id:
+ while not self._has_
+ branch_id = self.branch_
+ has_change = self._set_
if has_change:
This seems to fix it, but I'm not sure if it's right. I assume branch_id () is the mainline and so the loop doesn't make sense for it.