qannotate crashes in branch without working tree

Bug #419477 reported by Gary van der Merwe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Medium
Gary van der Merwe

Bug Description

~/qbzr/trunk $ bzr qannotate lib/loggraphprovider.py
bzr: ERROR: exceptions.NameError: global name 'branch' is not defined

Traceback (most recent call last):
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/trace.py", line 273, in reports_exception_decorate
    return f(*args, **kargs)
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/annotate.py", line 324, in initial_load
    self.annotate(self.tree, self.fileId, self.path)
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/annotate.py", line 401, in annotate
    self.log_list.load_branch(self.branch, [self.fileId])
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/logwidget.py", line 146, in load_branch
    self.load()
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/annotate.py", line 336, in log_list_load
    gp.load_graph_all_revisions_for_annotate)
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/logmodel.py", line 107, in load_graph
    gp_loader_func()
  File "/home/garyvdm/.bazaar/plugins/qbzr/lib/loggraphprovider.py", line 498, in load_graph_all_revisions_for_annotate
    branch_last_revision = branch.last_revision()
NameError: global name 'branch' is not defined

bzr 1.17 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'qannotate', 'lib/loggraphprovider.py']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
plugins:
  qbzr /home/garyvdm/.bazaar/plugins/qbzr [0.14]

Related branches

Changed in qbzr:
assignee: nobody → Gary van der Merwe (garyvdm)
importance: Undecided → Medium
milestone: none → 0.14.1
status: New → Fix Committed
Changed in qbzr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.