--- a/mercurial/commands.py Mon Mar 13 17:49:13 2017 -0700 +++ b/mercurial/commands.py Thu Mar 16 10:10:00 2017 +0530 @@ -4720,6 +4720,7 @@ Returns 0 on success. """ + opts = pycompat.byteskwargs(opts) revs = opts.get('rev') change = opts.get('change')