Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 32193: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 | 5b630f2ccb4e |
children | a77e61b45384 |
comparison
equal
deleted
inserted
replaced
32192:964c6be36590 | 32193:93155367a2a6 |
---|---|
113 return newchunks, newopts | 113 return newchunks, newopts |
114 | 114 |
115 def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, | 115 def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, |
116 filterfn, *pats, **opts): | 116 filterfn, *pats, **opts): |
117 from . import merge as mergemod | 117 from . import merge as mergemod |
118 opts = pycompat.byteskwargs(opts) | |
118 if not ui.interactive(): | 119 if not ui.interactive(): |
119 if cmdsuggest: | 120 if cmdsuggest: |
120 msg = _('running non-interactively, use %s instead') % cmdsuggest | 121 msg = _('running non-interactively, use %s instead') % cmdsuggest |
121 else: | 122 else: |
122 msg = _('running non-interactively') | 123 msg = _('running non-interactively') |