[PATCH 10 of 19] workingctx: add _prestatus method to call _dirstatestatus
Sean Farley
sean.michael.farley at gmail.com
Thu May 15 16:16:28 CDT 2014
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1398136379 18000
# Mon Apr 21 22:12:59 2014 -0500
# Node ID fc447ebc4465a7e53beafa1a5ffb3e151a8c4b47
# Parent 232598babb1191bceaa31f13d860568c795352bf
workingctx: add _prestatus method to call _dirstatestatus
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1267,10 +1267,13 @@ class workingctx(committablectx):
for f in removed:
if f in mf:
del mf[f]
return mf
+ def _prestatus(self, other, s, match, listignored, listclean, listunknown):
+ return self._dirstatestatus(match, listignored, listclean, listunknown)
+
def _dirstatestatus(self, match=None, ignored=False, clean=False,
unknown=False):
'''Gets the status from the dirstate -- internal use only.'''
listignored, listclean, listunknown = ignored, clean, unknown
match = match or matchmod.always(self._repo.root, self._repo.getcwd())
More information about the Mercurial-devel
mailing list