comparison mercurial/repository.py @ 41029:b2de94e59702

repository: update interface signature of narrowmatch() This should have been part of 4fd0fac48922 (localrepo: allow narrowmatch() to accept matcher to intersect with, 2018-09-28) and 41fcdfe3bfeb (narrow: allow repo.narrowmatch(match) to include exact matches from "match", 2018-10-01). Differential Revision: https://phab.mercurial-scm.org/D5466
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 18 Dec 2018 09:34:32 -0800
parents e1c3a2e9df59
children a9b609fbe39c
comparison
equal deleted inserted replaced
41028:095a0a63ad88 41029:b2de94e59702
1475 """Working directory state.""") 1475 """Working directory state.""")
1476 1476
1477 narrowpats = interfaceutil.Attribute( 1477 narrowpats = interfaceutil.Attribute(
1478 """Matcher patterns for this repository's narrowspec.""") 1478 """Matcher patterns for this repository's narrowspec.""")
1479 1479
1480 def narrowmatch(): 1480 def narrowmatch(match=None, includeexact=False):
1481 """Obtain a matcher for the narrowspec.""" 1481 """Obtain a matcher for the narrowspec."""
1482 1482
1483 def setnarrowpats(newincludes, newexcludes): 1483 def setnarrowpats(newincludes, newexcludes):
1484 """Define the narrowspec for this repository.""" 1484 """Define the narrowspec for this repository."""
1485 1485