# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-14 12:12:14 # Node ID 7fda2a8ed24ec360ef137f39bd20f55e9cc9fc0d # Parent 2f309b8846cf5bbdd1a79cd192c4563918dda0fc py3: use pycompat.{bytes|str}kwargs in transplant.py Differential Revision: https://phab.mercurial-scm.org/D2268 diff --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -120,7 +120,8 @@ class transplanter(object): opener=self.opener) def getcommiteditor(): editform = cmdutil.mergeeditform(repo[None], 'transplant') - return cmdutil.getcommiteditor(editform=editform, **opts) + return cmdutil.getcommiteditor(editform=editform, + **pycompat.strkwargs(opts)) self.getcommiteditor = getcommiteditor def applied(self, repo, node, parent): @@ -647,6 +648,7 @@ def _dotransplant(ui, repo, *revs, **opt raise error.Abort(_('--all is incompatible with a ' 'revision list')) + opts = pycompat.byteskwargs(opts) checkopts(opts, revs) if not opts.get('log'):