# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-04-20 20:50:46 # Node ID 93155367a2a66d067257d6b83c76bbbc87a2051c # Parent 964c6be36590fc582c9b9caf27bf46853b22b5a0 py3: convert opts to bytes in cmdutil.dorecord() commands.commit() calls cmdutil.dorecord() where opts are passed as unicodes being keyword arguments. This patch converts them back to bytes as they are required. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -115,6 +115,7 @@ def recordfilter(ui, originalhunks, oper def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, filterfn, *pats, **opts): from . import merge as mergemod + opts = pycompat.byteskwargs(opts) if not ui.interactive(): if cmdsuggest: msg = _('running non-interactively, use %s instead') % cmdsuggest