changeset 41032: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 095a0a63ad88
children c0865f3da285
files mercurial/repository.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):