##// END OF EJS Templates
fileset: build initial subset in fullmatchctx class
Yuya Nishihara -
r31190:2f881e7d default
parent child Browse files
Show More
@@ -474,7 +474,7 b' methods = {'
474 }
474 }
475
475
476 class matchctx(object):
476 class matchctx(object):
477 def __init__(self, ctx, subset=None, status=None):
477 def __init__(self, ctx, subset, status=None):
478 self.ctx = ctx
478 self.ctx = ctx
479 self.subset = subset
479 self.subset = subset
480 self._status = status
480 self._status = status
@@ -501,7 +501,8 b' class matchctx(object):'
501 class fullmatchctx(matchctx):
501 class fullmatchctx(matchctx):
502 """A match context where any files in any revisions should be valid"""
502 """A match context where any files in any revisions should be valid"""
503
503
504 def __init__(self, ctx, subset=None, status=None):
504 def __init__(self, ctx, status=None):
505 subset = _buildsubset(ctx, status)
505 super(fullmatchctx, self).__init__(ctx, subset, status)
506 super(fullmatchctx, self).__init__(ctx, subset, status)
506
507
507 def _intree(funcs, tree):
508 def _intree(funcs, tree):
@@ -540,8 +541,7 b' def getfileset(ctx, expr):'
540 else:
541 else:
541 status = None
542 status = None
542
543
543 subset = _buildsubset(ctx, status)
544 return getset(fullmatchctx(ctx, status), tree)
544 return getset(fullmatchctx(ctx, subset, status), tree)
545
545
546 def prettyformat(tree):
546 def prettyformat(tree):
547 return parser.prettyformat(tree, ('string', 'symbol'))
547 return parser.prettyformat(tree, ('string', 'symbol'))
General Comments 0
You need to be logged in to leave comments. Login now