# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1491552933 -19800 # Node ID 9fce17c4a7b3da19c001b654afcb3c01aad9f04f # Parent 6c7a58d3ca5d3ef09588feb49711b4184d41ac7c py3: use pycompat.byteskwargs() to convert opts to bytes We have converted opts to unicodes before passing them. diff -r 6c7a58d3ca5d -r 9fce17c4a7b3 mercurial/commands.py --- a/mercurial/commands.py Thu Apr 06 22:10:46 2017 -0700 +++ b/mercurial/commands.py Fri Apr 07 13:45:33 2017 +0530 @@ -2027,6 +2027,7 @@ Returns 0 on success. """ + opts = pycompat.byteskwargs(opts) changesets += tuple(opts.get('rev', [])) if not changesets: changesets = ['.'] @@ -3185,6 +3186,7 @@ Returns 0 if there are incoming changes, 1 otherwise. """ + opts = pycompat.byteskwargs(opts) if opts.get('graph'): cmdutil.checkunsupportedgraphflags([], opts) def display(other, chlist, displayer):