mercurial/bundle2.py
changeset 30872 1f51b4658f21
parent 30871 e527c11375a4
child 30965 f01df5d2fe49
--- a/mercurial/bundle2.py	Thu Feb 02 11:03:41 2017 +0100
+++ b/mercurial/bundle2.py	Thu Feb 02 14:19:48 2017 +0100
@@ -862,6 +862,11 @@
         self._generated = None
         self.mandatory = mandatory
 
+    def __repr__(self):
+        cls = "%s.%s" % (self.__class__.__module__, self.__class__.__name__)
+        return ('<%s object at %x; id: %s; type: %s; mandatory: %s>'
+                % (cls, id(self), self.id, self.type, self.mandatory))
+
     def copy(self):
         """return a copy of the part