Rev 1394: Avoid reopening bzrdir. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Tue Jul 1 12:54:26 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1394
revision-id: jelmer at samba.org-20080701115424-817uklv2aq0d2fko
parent: jelmer at samba.org-20080630133804-bdhsrw0tslzzd9hp
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Tue 2008-07-01 13:54:24 +0200
message:
  Avoid reopening bzrdir.
modified:
  __init__.py                    __init__.py-20051008155114-eae558e6cf149e1d
=== modified file '__init__.py'
--- a/__init__.py	2008-06-30 13:38:04 +0000
+++ b/__init__.py	2008-07-01 11:54:24 +0000
@@ -235,7 +235,7 @@
             from_repos = from_dir.open_repository()
         except NoRepositoryPresent, e:
             try:
-                Branch.open(from_location)
+                from_dir.open_branch()
                 raise BzrCommandError("No Repository found at %s. "
                     "For individual branches, use 'bzr branch'." % from_location)
             except NotBranchError:




More information about the bazaar-commits mailing list