mercurial/context.py
changeset 3238 d865390c1781
parent 3237 931288cf58a7
child 3239 6d98149d70fe
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -36,7 +36,7 @@ class changectx(object):
         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 @@ class filectx(object):
         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