Skip to content
Snippets Groups Projects
Commit 2f881e7d authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

fileset: build initial subset in fullmatchctx class

parent 3c32a3fd
No related branches found
No related tags found
No related merge requests found
......@@ -474,7 +474,7 @@
}
class matchctx(object):
def __init__(self, ctx, subset=None, status=None):
def __init__(self, ctx, subset, status=None):
self.ctx = ctx
self.subset = subset
self._status = status
......@@ -501,7 +501,8 @@
class fullmatchctx(matchctx):
"""A match context where any files in any revisions should be valid"""
def __init__(self, ctx, subset=None, status=None):
def __init__(self, ctx, status=None):
subset = _buildsubset(ctx, status)
super(fullmatchctx, self).__init__(ctx, subset, status)
def _intree(funcs, tree):
......@@ -540,8 +541,7 @@
else:
status = None
subset = _buildsubset(ctx, status)
return getset(fullmatchctx(ctx, subset, status), tree)
return getset(fullmatchctx(ctx, status), tree)
def prettyformat(tree):
return parser.prettyformat(tree, ('string', 'symbol'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment