Patchwork [13,of,19] workingctx: add _poststatus method to call _filtersuspectsymlink

login
register
mail settings
Submitter Sean Farley
Date May 15, 2014, 9:16 p.m.
Message ID <aeb046dc6d14e4e658eb.1400188591@laptop.local>
Download mbox | patch
Permalink /patch/4772/
State Accepted
Commit 466964bdf4c1acadf6effda007b0c54b2983ed40
Headers show

Comments

Sean Farley - May 15, 2014, 9:16 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1398189562 18000
#      Tue Apr 22 12:59:22 2014 -0500
# Node ID aeb046dc6d14e4e658eb08b6134894209117f70b
# Parent  e0cf0d89a22645773c61396492fab4c7c43fc526
workingctx: add _poststatus method to call _filtersuspectsymlink
Pierre-Yves David - May 16, 2014, 12:14 a.m.
On 05/15/2014 02:16 PM, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley@gmail.com>
> # Date 1398189562 18000
> #      Tue Apr 22 12:59:22 2014 -0500
> # Node ID aeb046dc6d14e4e658eb08b6134894209117f70b
> # Parent  e0cf0d89a22645773c61396492fab4c7c43fc526
> workingctx: add _poststatus method to call _filtersuspectsymlink

I would like to know more!

> 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):

The best way to citizenship is to write docstring!
Sean Farley - May 16, 2014, 12:49 a.m.
Pierre-Yves David <pierre-yves.david@ens-lyon.org> writes:

> On 05/15/2014 02:16 PM, Sean Farley wrote:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley@gmail.com>
>> # Date 1398189562 18000
>> #      Tue Apr 22 12:59:22 2014 -0500
>> # Node ID aeb046dc6d14e4e658eb08b6134894209117f70b
>> # Parent  e0cf0d89a22645773c61396492fab4c7c43fc526
>> workingctx: add _poststatus method to call _filtersuspectsymlink
>
> I would like to know more!

:-) Ok, will do next round.

>> 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):
>
> The best way to citizenship is to write docstring!

Hah, ok.

Patch

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())