# HG changeset patch # User Sean Farley # Date 2013-08-15 18:31:17 # 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 --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -456,7 +456,7 @@ class basefilectx(object): 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))