diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py --- a/hgext/narrow/narrowwirepeer.py +++ b/hgext/narrow/narrowwirepeer.py @@ -14,6 +14,7 @@ hg, narrowspec, node, + pycompat, ) def uisetup(): @@ -47,6 +48,6 @@ include, exclude = repo.narrowpats kwargs["includepats"] = ','.join(include) kwargs["excludepats"] = ','.join(exclude) - return orig(cmd, *args, **kwargs) + return orig(cmd, *args, **pycompat.strkwargs(kwargs)) extensions.wrapfunction(peer, '_calltwowaystream', wrapped) hg.wirepeersetupfuncs.append(wirereposetup)