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
--- 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)