Rev 2749: Add CombinedGraphIndex repr in http://sourcefrog.net/bzr/pack-repository

Martin Pool mbp at sourcefrog.net
Wed Sep 19 04:59:11 BST 2007


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

------------------------------------------------------------
revno: 2749
revision-id: mbp at sourcefrog.net-20070919035909-yeq9cyvpr1e5y46t
parent: mbp at sourcefrog.net-20070919030529-v5pam6fom6s6iqxa
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: pack-repository
timestamp: Wed 2007-09-19 13:59:09 +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-09-19 03:59:09 +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