changeset 36352:5dbeddbf164a

narrowcommands: add some missing strkwargs calls for py3 # skip-blame because it's just r prefixes Differential Revision: https://phab.mercurial-scm.org/D2367
author Augie Fackler <augie@google.com>
date Wed, 21 Feb 2018 11:57:11 -0500
parents 87e950a070e6
children cc9d0763c8e9
files hgext/narrow/narrowcommands.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Wed Feb 21 11:56:51 2018 -0500
+++ b/hgext/narrow/narrowcommands.py	Wed Feb 21 11:57:11 2018 -0500
@@ -134,14 +134,14 @@
     """Wraps archive command to narrow the default includes."""
     if narrowrepo.REQUIREMENT in repo.requirements:
         repo_includes, repo_excludes = repo.narrowpats
-        includes = set(opts.get('include', []))
-        excludes = set(opts.get('exclude', []))
+        includes = set(opts.get(r'include', []))
+        excludes = set(opts.get(r'exclude', []))
         includes, excludes, unused_invalid = narrowspec.restrictpatterns(
             includes, excludes, repo_includes, repo_excludes)
         if includes:
-            opts['include'] = includes
+            opts[r'include'] = includes
         if excludes:
-            opts['exclude'] = excludes
+            opts[r'exclude'] = excludes
     return orig(ui, repo, *args, **opts)
 
 def pullbundle2extraprepare(orig, pullop, kwargs):