changeset 3216:d865390c1781

context: simplify repr methods
author Matt Mackall <mpm@selenic.com>
date Mon, 02 Oct 2006 15:28:44 -0500
parents 931288cf58a7
children 6d98149d70fe
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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