Show More
@@ -613,14 +613,6 b' class matchctx(object):' | |||||
613 | def switch(self, ctx, status=None): |
|
613 | def switch(self, ctx, status=None): | |
614 | return matchctx(ctx, status, self._badfn) |
|
614 | return matchctx(ctx, status, self._badfn) | |
615 |
|
615 | |||
616 | class fullmatchctx(matchctx): |
|
|||
617 | """A match context where any files in any revisions should be valid""" |
|
|||
618 |
|
||||
619 | def __init__(self, ctx, status=None, badfn=None): |
|
|||
620 | super(fullmatchctx, self).__init__(ctx, status, badfn) |
|
|||
621 | def switch(self, ctx, status=None): |
|
|||
622 | return fullmatchctx(ctx, status, self._badfn) |
|
|||
623 |
|
||||
624 | # filesets using matchctx.switch() |
|
616 | # filesets using matchctx.switch() | |
625 | _switchcallers = [ |
|
617 | _switchcallers = [ | |
626 | 'revs', |
|
618 | 'revs', | |
@@ -643,7 +635,7 b' def _intree(funcs, tree):' | |||||
643 | def match(ctx, expr, badfn=None): |
|
635 | def match(ctx, expr, badfn=None): | |
644 | """Create a matcher for a single fileset expression""" |
|
636 | """Create a matcher for a single fileset expression""" | |
645 | tree = parse(expr) |
|
637 | tree = parse(expr) | |
646 |
mctx = |
|
638 | mctx = matchctx(ctx, _buildstatus(ctx, tree), badfn=badfn) | |
647 | return getmatch(mctx, tree) |
|
639 | return getmatch(mctx, tree) | |
648 |
|
640 | |||
649 | def _buildstatus(ctx, tree, basectx=None): |
|
641 | def _buildstatus(ctx, tree, basectx=None): |
General Comments 0
You need to be logged in to leave comments.
Login now