Comments
Patch
@@ -972,10 +972,12 @@
def modified(self):
return self._status[0]
def added(self):
return self._status[1]
+ def removed(self):
+ return self._status[2]
class workingctx(commitablectx):
"""A workingctx object makes access to data related to
the current working directory convenient.
date - any valid date string or (unixtime, offset), or None.
@@ -999,12 +1001,10 @@
p = self._repo.dirstate.parents()
if p[1] == nullid:
p = p[:-1]
return [changectx(self._repo, x) for x in p]
- def removed(self):
- return self._status[2]
def deleted(self):
return self._status[3]
def unknown(self):
assert self._unknown is not None # must call status first
return self._unknown