##// END OF EJS Templates
fileset: add class to host special handling of initial subset...
Yuya Nishihara -
r31188:ec5b56b5 default
parent child Browse files
Show More
@@ -498,6 +498,12 b' class matchctx(object):'
498 498 def narrow(self, files):
499 499 return matchctx(self.ctx, self.filter(files), self._status)
500 500
501 class fullmatchctx(matchctx):
502 """A match context where any files in any revisions should be valid"""
503
504 def __init__(self, ctx, subset=None, status=None):
505 super(fullmatchctx, self).__init__(ctx, subset, status)
506
501 507 def _intree(funcs, tree):
502 508 if isinstance(tree, tuple):
503 509 if tree[0] == 'func' and tree[1][0] == 'symbol':
@@ -529,7 +535,7 b' def getfileset(ctx, expr):'
529 535 status = None
530 536 subset = list(ctx.walk(ctx.match([])))
531 537
532 return getset(matchctx(ctx, subset, status), tree)
538 return getset(fullmatchctx(ctx, subset, status), tree)
533 539
534 540 def prettyformat(tree):
535 541 return parser.prettyformat(tree, ('string', 'symbol'))
General Comments 0
You need to be logged in to leave comments. Login now