Rev 2750: Add CombinedGraphIndex repr in http://sourcefrog.net/bzr/pack-hashes

Martin Pool mbp at sourcefrog.net
Thu Aug 30 01:22:24 BST 2007


At http://sourcefrog.net/bzr/pack-hashes

------------------------------------------------------------
revno: 2750
revision-id: mbp at sourcefrog.net-20070830002223-5fmig065hwpk1sbd
parent: mbp at sourcefrog.net-20070830001052-kd2efiji0664ihzz
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: pack-hashes
timestamp: Thu 2007-08-30 10:22:23 +1000
message:
  Add CombinedGraphIndex repr
modified:
  bzrlib/index.py                index.py-20070712131115-lolkarso50vjr64s-1
=== modified file 'bzrlib/index.py'
--- a/bzrlib/index.py	2007-08-29 08:41:44 +0000
+++ b/bzrlib/index.py	2007-08-30 00:22:23 +0000
@@ -496,6 +496,11 @@
         """
         self._indices = indices
 
+    def __repr__(self):
+        return "%s(%s)" % (
+                self.__class__.__name__,
+                ', '.join(map(repr, self._indices)))
+
     def insert_index(self, pos, index):
         """Insert a new index in the list of indices to query.
 




More information about the bazaar-commits mailing list