narrowwirepeer: add some strkwargs to fix a crash on py3
authorAugie Fackler <augie@google.com>
Wed, 21 Feb 2018 11:56:51 -0500
changeset 36351 87e950a070e6
parent 36350 ff7a19ad7aa3
child 36352 5dbeddbf164a
narrowwirepeer: add some strkwargs to fix a crash on py3 # skip-blame because it's just some r prefixes Differential Revision: https://phab.mercurial-scm.org/D2366
hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py	Wed Feb 21 12:03:44 2018 -0500
+++ b/hgext/narrow/narrowwirepeer.py	Wed Feb 21 11:56:51 2018 -0500
@@ -45,8 +45,8 @@
                 # TODO: don't blindly add include/exclude wireproto
                 # arguments to unbundle.
                 include, exclude = repo.narrowpats
-                kwargs["includepats"] = ','.join(include)
-                kwargs["excludepats"] = ','.join(exclude)
+                kwargs[r"includepats"] = ','.join(include)
+                kwargs[r"excludepats"] = ','.join(exclude)
             return orig(cmd, *args, **kwargs)
         extensions.wrapfunction(peer, '_calltwowaystream', wrapped)
     hg.wirepeersetupfuncs.append(wirereposetup)