Mercurial > hg-stable
changeset 23237:98f41a2f8fba
context.status: remove unused arguments from _matchstatus()
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Sat, 11 Oct 2014 23:18:53 -0700 |
parents | 7ea2ef4479f2 |
children | 39eb9f78f968 |
files | mercurial/context.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Thu Oct 23 13:43:20 2014 -0700 +++ b/mercurial/context.py Sat Oct 11 23:18:53 2014 -0700 @@ -85,8 +85,7 @@ del mf[fn] return mf - def _matchstatus(self, other, s, match, listignored, listclean, - listunknown): + def _matchstatus(self, other, match): """return match.always if match is none This internal method provides a way for child objects to override the @@ -311,9 +310,8 @@ reversed = True ctx1, ctx2 = ctx2, ctx1 + match = ctx2._matchstatus(ctx1, match) r = [[], [], [], [], [], [], []] - match = ctx2._matchstatus(ctx1, r, match, listignored, listclean, - listunknown) r = ctx2._prestatus(ctx1, r, match, listignored, listclean, listunknown) r = ctx2._buildstatus(ctx1, r, match, listignored, listclean, listunknown) @@ -1472,8 +1470,7 @@ listunknown) return s - def _matchstatus(self, other, s, match, listignored, listclean, - listunknown): + def _matchstatus(self, other, match): """override the match method with a filter for directory patterns We use inheritance to customize the match.bad method only in cases of @@ -1484,8 +1481,7 @@ just use the default match object sent to us. """ superself = super(workingctx, self) - match = superself._matchstatus(other, s, match, listignored, listclean, - listunknown) + match = superself._matchstatus(other, match) if other != self._repo['.']: def bad(f, msg): # 'f' may be a directory pattern from 'match.files()',