Rev 4695: Handle NotBranchError when looking up source tree. in http://people.canonical.com/~robertc/baz2.0/integration

Robert Collins robertc at robertcollins.net
Fri Sep 18 00:09:56 BST 2009


At http://people.canonical.com/~robertc/baz2.0/integration

------------------------------------------------------------
revno: 4695
revision-id: robertc at robertcollins.net-20090917230949-smyehlpvplo260ae
parent: robertc at robertcollins.net-20090917224824-864r52bdqv8wuftu
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Fri 2009-09-18 09:09:49 +1000
message:
  Handle NotBranchError when looking up source tree.
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2009-09-17 22:26:36 +0000
+++ b/bzrlib/tests/__init__.py	2009-09-17 23:09:49 +0000
@@ -976,7 +976,7 @@
         try:
             try:
                 tree = workingtree.WorkingTree.open(path)
-            except errors.NoWorkingTree:
+            except (errors.NotBranchError, errors.NoWorkingTree):
                 return
         finally:
             self.enable_directory_isolation()




More information about the bazaar-commits mailing list