bzr: ERROR: exceptions.NameError: global name 'errors' is not defined

Bug #520422 reported by Martin von Gagern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Undecided
Unassigned

Bug Description

bzr: ERROR: exceptions.NameError: global name 'errors' is not defined

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/util.py", line 878, in decorate
    run_in_loading_queue(f, *args, **kargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/util.py", line 890, in run_in_loading_queue
    f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/uifactory.py", line 32, in decorate
    r = f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 356, in update_selection
    revids, self.log_list.graph_provider.get_repo_revids)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 150, in set_display_revids
    pass_prev_loaded_rev=True)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/lazycachedrevloader.py", line 64, in load_revisions
    revisions_loaded(return_revisions, False)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 204, in revisions_loaded
    props.extend(self.loaded_revision_props(rev))
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 290, in loaded_revision_props
    except errors.InvalidRevisionId:
NameError: global name 'errors' is not defined

bzr 2.0.4 on python 2.6.4 (linux2)
arguments: ['/usr/bin/bzr', 'qlog']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.utf8'
plugins:
  bash_completion /home/mvg/.bazaar/plugins/bash_completion [1.0.1dev]
  bisect /home/mvg/.bazaar/plugins/bisect [1.1.0.pre.0]
  cvsps_import /home/mvg/.bazaar/plugins/cvsps_import [unknown]
  launchpad /usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad [2.0.4]
  netrc_credential_store /usr/lib64/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.0.4]
  qbzr /usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr [0.17.0]
  rebase /home/mvg/.bazaar/plugins/rebase [0.5.5]
  svn /usr/lib64/python2.6/site-packages/bzrlib/plugins/svn [1.0.1]

This happened with revisions imported from CVS, namely lp:wdiff revisions up to 40.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 520422] [NEW] bzr: ERROR: exceptions.NameError: global name 'errors' is not defined

Martin von Gagern пишет:
> File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revisionmessagebrowser.py", line 290, in loaded_revision_props
> except errors.InvalidRevisionId:
> NameError: global name 'errors' is not defined

Missing import I guess. Should be easy to fix.

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

This is already fixed in 0.18. Please, upgrade.

Changed in qbzr:
status: New → 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.