mercurial/commands.py
changeset 31826 9fce17c4a7b3
parent 31822 fde4822b0102
child 31831 1da9b2a4cbb8
--- 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):