Rev 2859: Back out class test removal in RemoteRepository.has_same_location. in http://people.ubuntu.com/~robertc/baz2.0/remote

Robert Collins robertc at robertcollins.net
Wed Oct 3 04:33:48 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/remote

------------------------------------------------------------
revno: 2859
revision-id: robertc at robertcollins.net-20071003033339-s9h85y5qewg60c3e
parent: robertc at robertcollins.net-20070925040133-wu3yqazl1zwhg9ls
committer: Robert Collins <robertc at robertcollins.net>
branch nick: remote
timestamp: Wed 2007-10-03 13:33:39 +1000
message:
  Back out class test removal in RemoteRepository.has_same_location.
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2007-09-25 04:01:33 +0000
+++ b/bzrlib/remote.py	2007-10-03 03:33:39 +0000
@@ -339,7 +339,8 @@
         return response[0] == 'yes'
 
     def has_same_location(self, other):
-        return (self.base == other.base)
+        return (self.__class__ == other.__class__ and
+                self.bzrdir.transport.base == other.bzrdir.transport.base)
         
     def get_graph(self, other_repository=None):
         """Return the graph for this repository format"""



More information about the bazaar-commits mailing list