Rev 1559: Implement BranchingSchemeDerivedLayout.__repr__() as it's used as key in revid cache. in file:///data/jelmer/bzr-svn/pushmerged/

Jelmer Vernooij jelmer at samba.org
Sun Aug 3 17:42:21 BST 2008


At file:///data/jelmer/bzr-svn/pushmerged/

------------------------------------------------------------
revno: 1559
revision-id: jelmer at samba.org-20080803164220-27pf97x2fe9duajb
parent: jelmer at samba.org-20080803164148-ilobgwf4nd7lce9s
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pushmerged
timestamp: Sun 2008-08-03 18:42:20 +0200
message:
  Implement BranchingSchemeDerivedLayout.__repr__() as it's used as key in revid cache.
modified:
  mapping3/__init__.py           __init__.py-20080502174630-9324zh25kka98vlw-1
=== modified file 'mapping3/__init__.py'
--- a/mapping3/__init__.py	2008-08-03 04:38:52 +0000
+++ b/mapping3/__init__.py	2008-08-03 16:42:20 +0000
@@ -130,6 +130,9 @@
         except NotImplementedError:
             return False
 
+    def __repr__(self):
+        return "%s(%s)" % (self.__class__.__name__, repr(self.scheme))
+
 
 def get_stored_scheme(repository):
     """Retrieve the stored branching scheme, either in the repository 




More information about the bazaar-commits mailing list