diff hgext/narrow/narrowcommands.py @ 36100:8fd0a9e2d7e9

narrow: make restrictpatterns a little more idiomatic I'm not sure why invalid_includes was an out-param, but it doesn't look like there's any reason for it to be now. Differential Revision: https://phab.mercurial-scm.org/D2192
author Augie Fackler <augie@google.com>
date Mon, 12 Feb 2018 14:42:47 -0500
parents 8c31187b6717
children 4a7ba3ac9163
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Mon Feb 12 14:37:10 2018 -0500
+++ b/hgext/narrow/narrowcommands.py	Mon Feb 12 14:42:47 2018 -0500
@@ -134,7 +134,7 @@
         repo_includes, repo_excludes = repo.narrowpats
         includes = set(opts.get('include', []))
         excludes = set(opts.get('exclude', []))
-        includes, excludes = narrowspec.restrictpatterns(
+        includes, excludes, unused_invalid = narrowspec.restrictpatterns(
             includes, excludes, repo_includes, repo_excludes)
         if includes:
             opts['include'] = includes