basefilectx: use basectx __str__ instead of duplicating logic
authorSean Farley <sean.michael.farley@gmail.com>
Thu, 15 Aug 2013 13:31:17 -0500
changeset 19660 86ce68c1ccb8
parent 19659 750a913334c8
child 19661 fa529f409574
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
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))