# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 2006-10-02 20:28:44
# Node ID d865390c1781ea61a599eebe27804503b138efe6
# Parent  931288cf58a7251dfba7dc0e4a8c68db2a357d82

context: simplify repr methods

diff --git a/mercurial/context.py b/mercurial/context.py
--- 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