Exception when opening a non-bzr file in a bzr tree

Bug #422634 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gedit Developer Plugins
Fix Released
High
Unassigned

Bug Description

When opening a file outside of the working tree, this error was raised:

curtis@XXXXXXX:official-portlets$ Traceback (most recent call last):
  File "/home/curtis/.gnome2/gedit/plugins/gdpbzr.py", line 149, in update_ui
    self.bzr.set_working_tree()
  File "/home/curtis/.gnome2/gedit/plugins/gdp/bzr.py", line 60, in set_working_tree
    cwd)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 346, in open_containing
    return control.open_workingtree(), relpath
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1738, in open_workingtree
    format = WorkingTreeFormat.find_format(self)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 2766, in find_format
    raise errors.NoWorkingTree(base=transport.base)
bzrlib.errors.NoWorkingTree: No WorkingTree exists for "file:///XXXXXXXXX/Work/launchpad/.bzr/checkout/".

The set_working_tree should catch the NoWorkingTree along with the existing NotBranchError.

Tags: exception
Curtis Hovey (sinzui)
Changed in gdp:
status: In Progress → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote : Bug 422634 Fix released

Fixed released in gdp 0.1.

Changed in gdp:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in gdp:
assignee: Curtis Hovey (sinzui) → nobody
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.