qbrowse crashes when run in repository: 'NoneType' object has no attribute 'last_revision_info'

Bug #578935 reported by GreyGeek
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
High
Alexander Belchenko

Bug Description

Fresh install of Kubuntu 104 64bit with KDE 4.4.3
I created "bzr_repo" and cd into it. Then I issued
bzr qbrowse

that's when bzr crashed.

bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'last_revision_info'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/trace.py", line 291, in reports_exception_decorate
    return f(*args, **kargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/browse.py", line 148, in load
    revno, self.revision_id = self.branch.last_revision_info()
AttributeError: 'NoneType' object has no attribute 'last_revision_info'

bzr 2.1.1 on python 2.6.5 (linux2)
arguments: ['/usr/bin/bzr', 'qbrowse']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.0.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.1.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.1]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.18.6]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [0.1.0dev]

Related branches

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

> I created "bzr_repo" and cd into it.

How do you created "bzr_repo"? Can you provide us more details?

Changed in qbzr:
status: New → Incomplete
Revision history for this message
Alexander Belchenko (bialix) wrote :

I can reproduce it with following commands:

bzr init-repo .
bzr qbrowse

Changed in qbzr:
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
Alexander Belchenko (bialix) wrote :

2GreyGeek: you need to create a branch inside your repository with `bzr init foo` command and run qbrowse in foo directory.

Also please take a look on Bazaar Explorer GUI application. It may help you with initial setup of your project.

Revision history for this message
GreyGeek (greygeek) wrote :

I used the following command:
 bzr init-repo ~/bzr_repo

As you said, when I created a branch qbrowse did not crash.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

You get this error when you run qbrowse in a repository (not in a branch.) It should rather show a "Not a Branch" error.

summary: - crash starting bzr qbrowse in repository
+ qbrowse crashes when run in repository: 'NoneType' object has no
+ attribute 'last_revision_info'
Revision history for this message
André Bachmann (andrebachmann-dd) wrote :
Revision history for this message
Alexander Belchenko (bialix) wrote :

Fix committed to 0.20, 0.21 and trunk branches.

Changed in qbzr:
milestone: none → 0.21.2
status: Confirmed → Fix Released
Changed in qbzr:
assignee: nobody → Alexander Belchenko (bialix)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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