Mercurial > hg
changeset 38692:3700564c63fe
fileset: remove fullmatchctx class
It's exactly the same as matchctx.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jun 2018 22:38:29 +0900 |
parents | 370ff3e34160 |
children | 9b6a708f2263 |
files | mercurial/fileset.py |
diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/fileset.py Sat Jun 09 22:35:21 2018 +0900 +++ b/mercurial/fileset.py Sat Jun 09 22:38:29 2018 +0900 @@ -613,14 +613,6 @@ def switch(self, ctx, status=None): return matchctx(ctx, status, self._badfn) -class fullmatchctx(matchctx): - """A match context where any files in any revisions should be valid""" - - def __init__(self, ctx, status=None, badfn=None): - super(fullmatchctx, self).__init__(ctx, status, badfn) - def switch(self, ctx, status=None): - return fullmatchctx(ctx, status, self._badfn) - # filesets using matchctx.switch() _switchcallers = [ 'revs', @@ -643,7 +635,7 @@ def match(ctx, expr, badfn=None): """Create a matcher for a single fileset expression""" tree = parse(expr) - mctx = fullmatchctx(ctx, _buildstatus(ctx, tree), badfn=badfn) + mctx = matchctx(ctx, _buildstatus(ctx, tree), badfn=badfn) return getmatch(mctx, tree) def _buildstatus(ctx, tree, basectx=None):