Rev 2856: (robertc) Trivial repr for CombinedGraphIndex. (Martin Pool). in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Tue Sep 25 03:07:13 BST 2007


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 2856
revision-id: pqm at pqm.ubuntu.com-20070925020712-sf3qg1j3wh0l0hz8
parent: pqm at pqm.ubuntu.com-20070925010251-tjzcun2wc2l4grec
parent: robertc at robertcollins.net-20070925011559-8m3sbotvugyn0144
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2007-09-25 03:07:12 +0100
message:
  (robertc) Trivial repr for CombinedGraphIndex. (Martin Pool).
modified:
  bzrlib/index.py                index.py-20070712131115-lolkarso50vjr64s-1
    ------------------------------------------------------------
    revno: 2855.1.1
    merged: 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 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