# HG changeset patch # User Boris Feld <boris.f...@octobus.net> # Date 1498787132 -7200 # ven. juin 30 03:45:32 2017 +0200 # Node ID fcbbdb9dffcf7f029f208f27e3470cd7877bc24e # Parent e4b7a7d52664e48ccb943d0112d1c2d6d2ab124c # EXP-Topic config.register.web configitems: register the 'web.address' config
diff -r e4b7a7d52664 -r fcbbdb9dffcf mercurial/configitems.py --- a/mercurial/configitems.py ven. juin 30 03:45:31 2017 +0200 +++ b/mercurial/configitems.py ven. juin 30 03:45:32 2017 +0200 @@ -585,6 +585,9 @@ coreconfigitem('web', 'accesslog', default='-', ) +coreconfigitem('web', 'address', + default='', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, ) diff -r e4b7a7d52664 -r fcbbdb9dffcf mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py ven. juin 30 03:45:31 2017 +0200 +++ b/mercurial/hgweb/server.py ven. juin 30 03:45:32 2017 +0200 @@ -326,7 +326,7 @@ mimetypes.init() sys.setdefaultencoding(oldenc) - address = ui.config('web', 'address', '') + address = ui.config('web', 'address') port = util.getport(ui.config('web', 'port', 8000)) try: return cls(ui, app, (address, port), handler) _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel