diff -r 4a8db3538c39 -r 05906b8e1d23 mercurial/sshpeer.py --- a/mercurial/sshpeer.py Tue Jun 27 02:24:38 2017 +0900 +++ b/mercurial/sshpeer.py Tue Jun 27 00:20:55 2017 +0530 @@ -12,6 +12,7 @@ from .i18n import _ from . import ( error, + pycompat, util, wireproto, ) @@ -259,6 +260,7 @@ yield wireproto.unescapearg(work) def _callstream(self, cmd, **args): + args = pycompat.byteskwargs(args) self.ui.debug("sending %s command\n" % cmd) self.pipeo.write("%s\n" % cmd) _func, names = wireproto.commands[cmd]