/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 olive/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2006-10-10 07:01:27 UTC
  • mto: (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 103.
  • Revision ID: bialix@ukr.net-20061010070127-b22becb0c53100df
Fixed problem when user try to cd to shared repo root directory.

In this case there is branch but no working tree.
TODO: This fix is simple and in the future should more smart processing
      (at least 'bzr info' is working for shared repo)

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        self.notbranch = False
184
184
        try:
185
185
            self.wt, self.wtpath = WorkingTree.open_containing(self.path)
186
 
        except errors.NotBranchError:
 
186
        except (errors.NotBranchError, errors.NoWorkingTree):
187
187
            self.notbranch = True
188
188
 
189
189
    def get_path(self):
689
689
        notbranch = False
690
690
        try:
691
691
            tree1 = WorkingTree.open_containing(path)[0]
692
 
        except errors.NotBranchError:
 
692
        except (errors.NotBranchError, errors.NoWorkingTree):
693
693
            notbranch = True
694
694
        except errors.PermissionDenied:
695
695
            print "DEBUG: permission denied."