# HG changeset patch # User Sean Farley # Date 2014-04-22 17:51:58 # Node ID 168283c8dedff0c6536bb2197b053941a463870a # Parent c6976a4a39db2a6f9b89208680da662566471dc1 context: add a no-op _poststatus method This patch adds a private _poststatus method so that certain contexts, such as workingctx, can add custom post-processing to status. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -86,6 +86,14 @@ class basectx(object): """ return s + def _poststatus(self, other, s, match, listignored, listclean, listunknown): + """provide a hook to allow child objects to postprocess status results + + For example, this allows other contexts, such as workingctx, to filter + suspect symlinks in the case of FAT32 and NTFS filesytems. + """ + return s + def _buildstatus(self, other, s, match, listignored, listclean, listunknown): """build a status with respect to another context"""