--- a/mercurial/commands.py Tue Nov 28 11:00:54 2017 -0500
+++ b/mercurial/commands.py Wed Nov 29 07:57:17 2017 +0530
@@ -4560,6 +4560,7 @@
Returns 0 on success.
"""
+ opts = pycompat.byteskwargs(opts)
if opts.get("date"):
if opts.get("rev"):
raise error.Abort(_("you can't specify a revision and a date"))
@@ -4595,7 +4596,8 @@
hint = _("use --all to revert all files")
raise error.Abort(msg, hint=hint)
- return cmdutil.revert(ui, repo, ctx, (parent, p2), *pats, **opts)
+ return cmdutil.revert(ui, repo, ctx, (parent, p2), *pats,
+ **pycompat.strkwargs(opts))
@command('rollback', dryrunopts +
[('f', 'force', False, _('ignore safety measures'))])