qannotate crashes on when selecting "working tree" within dialog

Bug #1200186 reported by Craig Hewetson
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Medium
Unassigned

Bug Description

I have a local shared repository and within this respository I have a checkout of a branch.
Eg: (bzr init-repo repo; bzr checkout some/remote/branch repo/branch)
I then have a file in there called ExampleFile.txt,
I edit various parts of the file and commit each time.

Then I make some random changes to the file and before I commit:

Run "bzr qannotate ExampleFile.txt"

The nice qannotate dialog is shown. At the bottom half of the dialog is the graphical log of the file over its life time.
And the first node in the log is given a blue label called: "Working Tree".

Click on this label.

The result is the entire dialog crashes and the following error is shown in console:

bzr: ERROR: exceptions.AttributeError: 'WorkingTreeRevision' object has no attribute 'repository'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/util.py", line 944, in run_in_loading_queue
    f(*args, **kargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/uifactory.py", line 32, in decorate
    r = f(*args, **kargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 365, in update_selection
    revids, self.log_list.log_model.graph_viz.get_repo_revids)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 149, in set_display_revids
    pass_prev_loaded_rev=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/lazycachedrevloader.py", line 53, in load_revisions
    revisions_loaded(return_revisions, False)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 204, in revisions_loaded
    cached_revisions[revid].repository)
AttributeError: 'WorkingTreeRevision' object has no attribute 'repository'

bzr 2.6.0dev3 on python 2.7.4 (Linux-3.8.0-27-generic-x86_64-with-
    Ubuntu-13.04-raring)
arguments: ['/usr/bin/bzr', 'qannotate', 'ExampleFile']
plugins: bash_completion[2.6.0dev3], changelog_merge[2.6.0dev3],
    explorer[1.3.0], grep[2.6.0dev3], launchpad[2.6.0dev3],
    netrc_credential_store[2.6.0dev3], news_merge[2.6.0dev3],
    po_merge[2.6.0dev3], qbzr[0.23.0], weave_fmt[2.6.0dev3]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Tags: qannotate
Revision history for this message
Alexander Belchenko (bialix) wrote :

I can't reproduce it with simple branch.
Please, check behavior of lp:qbzr trunk and say whether this bug present there.

Changed in qbzr:
status: New → Incomplete
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

I've added the repo... its just one file, with one version in its history and it has a change.
I've tested it on the latest version of qbzr pulled from trunk today.
 qbzr[0.23.1dev]
revno:1507

Changed in qbzr:
status: Incomplete → Confirmed
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

unzip this attachement and run:
bzr qannotate file.txt

then select the blue label in the log view called "Working Tree" and it should crash the dialog.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Still no luck. Perhaps underlying bzr version mismatch. I'm running bzr 2.5.1 (latest stable) right now.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

That might be it. I'm running:
Bazaar (bzr) 2.6.0dev3
  Python interpreter: /usr/bin/python 2.7.4
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.8.0-27-generic-x86_64-with-Ubuntu-13.04-raring
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib

Changed in qbzr:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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