Patchwork [2,of,3,py3] commands: convert opts back to bytes for status

login
register
mail settings
Submitter Pulkit Goyal
Date March 16, 2017, 7:53 a.m.
Message ID <de18c43f8ce17d52542e.1489650804@pulkit-goyal>
Download mbox | patch
Permalink /patch/19382/
State Accepted
Headers show

Comments

Pulkit Goyal - March 16, 2017, 7:53 a.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1489639200 -19800
#      Thu Mar 16 10:10:00 2017 +0530
# Node ID de18c43f8ce17d52542e6df233e809b6a6ee0a07
# Parent  47dae3bbf8560824743293870aab601da2d1ed6c
commands: convert opts back to bytes for status
Yuya Nishihara - March 16, 2017, 2:41 p.m.
On Thu, 16 Mar 2017 13:23:24 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit@gmail.com>
> # Date 1489639200 -19800
> #      Thu Mar 16 10:10:00 2017 +0530
> # Node ID de18c43f8ce17d52542e6df233e809b6a6ee0a07
> # Parent  47dae3bbf8560824743293870aab601da2d1ed6c
> commands: convert opts back to bytes for status
> 
> diff -r 47dae3bbf856 -r de18c43f8ce1 mercurial/commands.py
> --- a/mercurial/commands.py	Thu Mar 16 10:01:12 2017 +0530
> +++ 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')

Queued this, thanks.

Patch

diff -r 47dae3bbf856 -r de18c43f8ce1 mercurial/commands.py
--- a/mercurial/commands.py	Thu Mar 16 10:01:12 2017 +0530
+++ 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')