/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to nautilus-bzr.py

  • Committer: Jelmer Vernooij
  • Date: 2008-03-04 17:56:50 UTC
  • mto: (437.1.1 bzr-gtk)
  • mto: This revision was merged to the branch mainline in revision 439.
  • Revision ID: jelmer@samba.org-20080304175650-tmlek531nsf6so6v
Fix handling of NoWorkingTree error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
# Copyright (C) 2006 Jeff Bailey
4
4
# Copyright (C) 2006 Wouter van Heyst
5
 
# Copyright (C) 2006 Jelmer Vernooij
 
5
# Copyright (C) 2006-2008 Jelmer Vernooij <jelmer@samba.org>
6
6
#
7
7
# Published under the GNU GPL
8
8
 
9
9
import gtk
10
10
import nautilus
11
11
import bzrlib
 
12
from bzrlib.branch import Branch
12
13
from bzrlib.bzrdir import BzrDir
13
 
from bzrlib.errors import NotBranchError
14
 
from bzrlib.errors import NoWorkingTree
15
 
from bzrlib.errors import UnsupportedProtocol
 
14
from bzrlib.errors import NotBranchError, NoWorkingTree, UnsupportedProtocol
 
15
from bzrlib.tree import file_status
16
16
from bzrlib.workingtree import WorkingTree
17
 
from bzrlib.branch import Branch
18
 
from bzrlib.tree import file_status
19
17
 
20
18
from bzrlib.plugin import load_plugins
21
19
load_plugins()
268
266
 
269
267
        return items
270
268
 
271
 
 
272
269
    def get_file_items(self, window, files):
273
270
        items = []
274
271
 
362
359
            tree, path = WorkingTree.open_containing(file.get_uri())
363
360
        except NotBranchError:
364
361
            return
 
362
        except NoWorkingTree:
 
363
            return
365
364
 
366
365
        emblem = None
367
366
        status = None