Rev 2856: (robertc) Trivial repr for CombinedGraphIndex. (Martin Pool). in http://people.ubuntu.com/~robertc/baz2.0/index

Robert Collins robertc at robertcollins.net
Tue Sep 25 02:16:12 BST 2007


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

------------------------------------------------------------
revno: 2856
revision-id: robertc at robertcollins.net-20070925011559-8m3sbotvugyn0144
parent: pqm at pqm.ubuntu.com-20070925010251-tjzcun2wc2l4grec
committer: Robert Collins <robertc at robertcollins.net>
branch nick: index
timestamp: Tue 2007-09-25 11:15:59 +1000
message:
  (robertc) Trivial repr for CombinedGraphIndex. (Martin Pool).
modified:
  bzrlib/index.py                index.py-20070712131115-lolkarso50vjr64s-1
=== modified file 'bzrlib/index.py'
--- a/bzrlib/index.py	2007-09-23 20:33:27 +0000
+++ b/bzrlib/index.py	2007-09-25 01:15:59 +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