Patchwork D2366: narrowwirepeer: add some strkwargs to fix a crash on py3

login
register
mail settings
Submitter phabricator
Date Feb. 22, 2018, 3:52 a.m.
Message ID <89b2fa1daf57213627a6739b9b89bc2e@localhost.localdomain>
Download mbox | patch
Permalink /patch/28232/
State Not Applicable
Headers show

Comments

phabricator - Feb. 22, 2018, 3:52 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG87e950a070e6: narrowwirepeer: add some strkwargs to fix a crash on py3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2366?vs=5979&id=5982

REVISION DETAIL
  https://phab.mercurial-scm.org/D2366

AFFECTED FILES
  hgext/narrow/narrowwirepeer.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: indygreg, pulkit, mercurial-devel

Patch

diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py
+++ b/hgext/narrow/narrowwirepeer.py
@@ -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)