From patchwork Thu May 15 21:16:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [13, of, 19] workingctx: add _poststatus method to call _filtersuspectsymlink From: Sean Farley X-Patchwork-Id: 4772 Message-Id: To: mercurial-devel@selenic.com Date: Thu, 15 May 2014 16:16:31 -0500 # HG changeset patch # User Sean Farley # Date 1398189562 18000 # Tue Apr 22 12:59:22 2014 -0500 # Node ID aeb046dc6d14e4e658eb08b6134894209117f70b # Parent e0cf0d89a22645773c61396492fab4c7c43fc526 workingctx: add _poststatus method to call _filtersuspectsymlink diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1273,10 +1273,14 @@ class workingctx(committablectx): return mf def _prestatus(self, other, s, match, listignored, listclean, listunknown): return self._dirstatestatus(match, listignored, listclean, listunknown) + def _poststatus(self, other, s, match, listignored, listclean, listunknown): + s[0] = self._filtersuspectsymlink(s[0]) + return s + 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())