repository: update interface signature of narrowmatch()
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 18 Dec 2018 09:34:32 -0800
changeset 41029 b2de94e59702
parent 41028 095a0a63ad88
child 41030 c0865f3da285
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
mercurial/repository.py
--- a/mercurial/repository.py	Wed Dec 05 15:30:56 2018 -0800
+++ b/mercurial/repository.py	Tue Dec 18 09:34:32 2018 -0800
@@ -1477,7 +1477,7 @@
     narrowpats = interfaceutil.Attribute(
         """Matcher patterns for this repository's narrowspec.""")
 
-    def narrowmatch():
+    def narrowmatch(match=None, includeexact=False):
         """Obtain a matcher for the narrowspec."""
 
     def setnarrowpats(newincludes, newexcludes):