# HG changeset patch # User Sean Farley # Date 1376591477 18000 # Node ID 86ce68c1ccb8db6a346a1827db5197851d0600ee # Parent 750a913334c8c3d7835cabef355290e4b4eddd70 basefilectx: use basectx __str__ instead of duplicating logic This change allows us to only rely on one place to convert a context to a string which will help eliminate duplicate code in context.py diff -r 750a913334c8 -r 86ce68c1ccb8 mercurial/context.py --- a/mercurial/context.py Wed Aug 14 13:41:09 2013 -0500 +++ b/mercurial/context.py Thu Aug 15 13:31:17 2013 -0500 @@ -456,7 +456,7 @@ return False def __str__(self): - return "%s@%s" % (self.path(), short(self.node())) + return "%s@%s" % (self.path(), self._changectx) def __repr__(self): return "<%s %s>" % (type(self).__name__, str(self))