mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
context: change workingctx str() from . to <node>+
This commit is contained in:
parent
285d3e6b86
commit
208002d0f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user