context: simplify repr methods
authorMatt Mackall <mpm@selenic.com>
Mon, 02 Oct 2006 15:28:44 -0500
changeset 3216 d865390c1781
parent 3215 931288cf58a7
child 3217 6d98149d70fe
context: simplify repr methods
mercurial/context.py
--- a/mercurial/context.py	Mon Oct 02 15:17:59 2006 -0500
+++ b/mercurial/context.py	Mon Oct 02 15:28:44 2006 -0500
@@ -36,7 +36,7 @@
         return short(self.node())
 
     def __repr__(self):
-        return "<changectx %s>" % short(self.node())
+        return "<changectx %s>" % str(self)
 
     def __eq__(self, other):
         return self._rev == other._rev
@@ -154,7 +154,7 @@
         return "%s@%s" % (self.path(), short(self.node()))
 
     def __repr__(self):
-        return "<filectx %s@%s>" % (self.path(), short(self.node()))
+        return "<filectx %s>" % str(self)
 
     def __eq__(self, other):
         return self._path == other._path and self._changeid == other._changeid