Rev 2132: Really fix the opening of RemoteBranches for both shared and nonshared repositories. in file:///home/robertc/source/baz/hpss/

Robert Collins robertc at robertcollins.net
Sat Feb 3 13:38:17 GMT 2007


------------------------------------------------------------
revno: 2132
revision-id: robertc at robertcollins.net-20070203133806-23k6ycwczhna1j3f
parent: robertc at robertcollins.net-20070203120738-vyfg1kkskz2l4kiv
committer: Robert Collins <robertc at robertcollins.net>
branch nick: hpss
timestamp: Sun 2007-02-04 00:38:06 +1100
message:
  Really fix the opening of RemoteBranches for both shared and nonshared repositories.
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2007-02-03 10:57:20 +0000
+++ b/bzrlib/remote.py	2007-02-03 13:38:06 +0000
@@ -92,8 +92,8 @@
                 # This branch accessed through the smart server, so wrap the
                 # file-level objects.
                 real_repository = real_branch.repository
-                assert isinstance(real_repository.bzrdir, RemoteBzrDir)
-                remote_repository = RemoteRepository(real_repository.bzrdir, real_repository)
+                remote_repository = self.find_repository()
+                remote_repository._real_repository = real_repository
                 return RemoteBranch(self, remote_repository, real_branch)
             else:
                 # otherwise just create a proxy for the branch.



More information about the bazaar-commits mailing list