diff mercurial/context.py @ 3319:6c68bc1e7873

context: change workingctx str() from . to <node>+
author Matt Mackall <mpm@selenic.com>
date Tue, 10 Oct 2006 02:11:59 -0500
parents 0e370798eebf
children e44eadc92ec4 50a18815e3f0
line wrap: on
line diff
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -330,7 +330,7 @@ class workingctx(changectx):
         self._node = None
 
     def __str__(self):
-        return "."
+        return str(self._parents[0]) + "+"
 
     def __nonzero__(self):
         return True
@@ -430,7 +430,7 @@ class workingfilectx(filectx):
         return True
 
     def __str__(self):
-        return "%s@." % self.path()
+        return "%s@%s" % (self.path(), self._changectx)
 
     def filectx(self, fileid):
         '''opens an arbitrary revision of the file without