[PATCH 01 of 23] web: use '_unset' default value for proxy config method

Gregory Szorc gregory.szorc at gmail.com
Sat Sep 16 20:39:03 UTC 2017


On Sat, Sep 16, 2017 at 11:28 AM, Boris Feld <boris.feld at octobus.net> wrote:

> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1505496068 -7200
> #      ven. sept. 15 19:21:08 2017 +0200
> # Node ID 8f9210de17d825ec69c4cdb266398b941a088275
> # Parent  709b44f38ab919c4f858f12807b9f01f6a2ee888
> # EXP-Topic config.register.web
> web: use '_unset' default value for proxy config method
>

Queued this series, thanks.


>
> This special value is needed to make sure registered default value are
> taken in
> account.
>
> diff -r 709b44f38ab9 -r 8f9210de17d8 mercurial/hgweb/hgwebdir_mod.py
> --- a/mercurial/hgweb/hgwebdir_mod.py   mar. sept. 12 09:13:02 2017 -0700
> +++ b/mercurial/hgweb/hgwebdir_mod.py   ven. sept. 15 19:21:08 2017 +0200
> @@ -491,7 +491,7 @@
>              else:
>                  yield config('web', 'motd', '')
>
> -        def config(section, name, default=None, untrusted=True):
> +        def config(section, name, default=uimod._unset, untrusted=True):
>              return self.ui.config(section, name, default, untrusted)
>
>          self.updatereqenv(req.env)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170916/f95df2ec/attachment-0002.html>


More information about the Mercurial-devel mailing list