mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
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:
parent
bcae1e9ab7
commit
deceb69003
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user