# HG changeset patch # User Martin von Zweigbergk # Date 1413094733 25200 # Node ID 98f41a2f8fba80ea84891570c0486c1e5c6d25d9 # Parent 7ea2ef4479f218632e899411a771bd05aa033432 context.status: remove unused arguments from _matchstatus() diff -r 7ea2ef4479f2 -r 98f41a2f8fba mercurial/context.py --- 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()',