narrowcommands: add some missing strkwargs calls for py3
authorAugie Fackler <augie@google.com>
Wed, 21 Feb 2018 11:57:11 -0500
changeset 36352 5dbeddbf164a
parent 36351 87e950a070e6
child 36353 cc9d0763c8e9
narrowcommands: add some missing strkwargs calls for py3 # skip-blame because it's just r prefixes Differential Revision: https://phab.mercurial-scm.org/D2367
hgext/narrow/narrowcommands.py
--- 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):