changeset 19660:86ce68c1ccb8

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
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 13:31:17 -0500
parents 750a913334c8
children fa529f409574
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))