# HG changeset patch # User Matt Mackall # Date 1159820924 18000 # Node ID d865390c1781ea61a599eebe27804503b138efe6 # Parent 931288cf58a7251dfba7dc0e4a8c68db2a357d82 context: simplify repr methods diff -r 931288cf58a7 -r d865390c1781 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 "" % short(self.node()) + return "" % 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 "" % (self.path(), short(self.node())) + return "" % str(self) def __eq__(self, other): return self._path == other._path and self._changeid == other._changeid