Rev 4605: (robertc) Fix RemoteBranch's handling of the ignore_fallbacks in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Aug 13 23:32:28 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4605 [merge]
revision-id: pqm at pqm.ubuntu.com-20090813223223-h05hlshkwh9oi7gq
parent: pqm at pqm.ubuntu.com-20090813185145-ta4t40a5t8z05amk
parent: robertc at robertcollins.net-20090813005723-e92km9w7airhhjze
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2009-08-13 23:32:23 +0100
message:
  (robertc) Fix RemoteBranch's handling of the ignore_fallbacks
  	parameter to Branch.open. (Robert Collins)
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'NEWS'
--- a/NEWS	2009-08-13 00:40:09 +0000
+++ b/NEWS	2009-08-13 22:32:23 +0000
@@ -50,6 +50,9 @@
 Internals
 *********
 
+* RemoteBranch.open now honours ignore_fallbacks correctly on bzr-v2
+  protocols. (Robert Collins)
+
 Testing
 *******
 

=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2009-08-13 00:40:09 +0000
+++ b/bzrlib/remote.py	2009-08-13 22:32:23 +0000
@@ -2028,6 +2028,9 @@
                     self._real_branch._format.network_name()
         else:
             self._format = format
+        # when we do _ensure_real we may need to pass ignore_fallbacks to the
+        # branch.open_branch method.
+        self._real_ignore_fallbacks = not setup_stacking
         if not self._format._network_name:
             # Did not get from open_branchV2 - old server.
             self._ensure_real()
@@ -2078,7 +2081,8 @@
                 raise AssertionError('smart server vfs must be enabled '
                     'to use vfs implementation')
             self.bzrdir._ensure_real()
-            self._real_branch = self.bzrdir._real_bzrdir.open_branch()
+            self._real_branch = self.bzrdir._real_bzrdir.open_branch(
+                ignore_fallbacks=self._real_ignore_fallbacks)
             if self.repository._real_repository is None:
                 # Give the remote repository the matching real repo.
                 real_repo = self._real_branch.repository




More information about the bazaar-commits mailing list