Rev 2858: (robertc) Remote object tweaks from the packs branch. (Robert Collins) in http://people.ubuntu.com/~robertc/baz2.0/remote

Robert Collins robertc at robertcollins.net
Tue Sep 25 05:01:43 BST 2007


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

------------------------------------------------------------
revno: 2858
revision-id: robertc at robertcollins.net-20070925040133-wu3yqazl1zwhg9ls
parent: pqm at pqm.ubuntu.com-20070925032108-y6nxt0xmghqldn4g
committer: Robert Collins <robertc at robertcollins.net>
branch nick: remote
timestamp: Tue 2007-09-25 14:01:33 +1000
message:
  (robertc) Remote object tweaks from the packs branch. (Robert Collins)
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2007-09-14 14:45:55 +0000
+++ b/bzrlib/remote.py	2007-09-25 04:01:33 +0000
@@ -259,6 +259,12 @@
         self._leave_lock = False
         # for tests
         self._reconcile_does_inventory_gc = True
+        self.base = self.bzrdir.transport.base
+
+    def __str__(self):
+        return "%s(%s)" % (self.__class__.__name__, self.base)
+
+    __repr__ = __str__
 
     def abort_write_group(self):
         """Complete a write group on the decorated repository.
@@ -333,8 +339,7 @@
         return response[0] == 'yes'
 
     def has_same_location(self, other):
-        return (self.__class__ == other.__class__ and
-                self.bzrdir.transport.base == other.bzrdir.transport.base)
+        return (self.base == other.base)
         
     def get_graph(self, other_repository=None):
         """Return the graph for this repository format"""



More information about the bazaar-commits mailing list