# HG changeset patch # User Sean Farley # Date 2014-04-22 02:39:10 # Node ID ef9b2bea970924bbfdb253c8bbd708feb26c617d # Parent 77dbd05471cda9c577f3416aa6260867ab6dee2a context: add a no-op _prestatus method This patch adds a private _prestatus method so that certain contexts, such as workingctx, can add custom pre-processing to status. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -78,6 +78,14 @@ class basectx(object): del mf[fn] return mf + def _prestatus(self, other, s, match, listignored, listclean, listunknown): + """provide a hook to allow child objects to preprocess status results + + For example, this allows other contexts, such as workingctx, to query + the dirstate before comparing the manifests. + """ + return s + def _buildstatus(self, other, s, match, listignored, listclean, listunknown): """build a status with respect to another context"""