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.
This commit is contained in:
Pulkit Goyal 2017-04-21 02:20:46 +05:30
parent bcae1e9ab7
commit deceb69003

View File

@ -115,6 +115,7 @@ def recordfilter(ui, originalhunks, operation=None):
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