[PATCH V2] config: honour the trusted flag in ui.configint

Yuya Nishihara yuya at tcha.org
Sun Mar 12 14:51:02 EDT 2017


On Sun, 12 Mar 2017 10:34:33 -0700, Martijn Pieters wrote:
> # HG changeset patch
> # User Martijn Pieters <mjpieters at fb.com>
> # Date 1489340031 25200
> #      Sun Mar 12 10:33:51 2017 -0700
> # Node ID 55a2a84cb75e7bbfb9dcd510b686de417fb9dfab
> # Parent  abf029200e198878a4576a87e095bd8d77d9cea9
> config: honour the trusted flag in ui.configint
> 
> diff --git a/mercurial/ui.py b/mercurial/ui.py
> --- a/mercurial/ui.py
> +++ b/mercurial/ui.py
> @@ -452,7 +452,7 @@
>          ConfigError: foo.invalid is not a byte quantity ('somevalue')
>          """
>  
> -        value = self.config(section, name)
> +        value = self.config(section, name, None, untrusted)

This is ui.configbytes, btw.


More information about the Mercurial-devel mailing list