changeset 32144:93155367a2a6

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.
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 21 Apr 2017 02:20:46 +0530
parents 964c6be36590
children f1aaa100f2a5
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Apr 28 00:49:30 2017 +0530
+++ b/mercurial/cmdutil.py	Fri Apr 21 02:20:46 2017 +0530
@@ -115,6 +115,7 @@
 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