[PATCH 01 of 23] web: use '_unset' default value for proxy config method
Boris Feld
boris.feld at octobus.net
Sat Sep 16 18:28:08 UTC 2017
# 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
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)
More information about the Mercurial-devel
mailing list