--- a/mercurial/configitems.py Fri Jun 30 03:45:47 2017 +0200
+++ b/mercurial/configitems.py Fri Jun 30 03:45:48 2017 +0200
@@ -628,6 +628,9 @@
coreconfigitem('web', 'ipv6',
default=False,
)
+coreconfigitem('web', 'port',
+ default=8000,
+)
coreconfigitem('worker', 'backgroundclose',
default=dynamicdefault,
)
--- a/mercurial/hgweb/server.py Fri Jun 30 03:45:47 2017 +0200
+++ b/mercurial/hgweb/server.py Fri Jun 30 03:45:48 2017 +0200
@@ -327,7 +327,7 @@
sys.setdefaultencoding(oldenc)
address = ui.config('web', 'address')
- port = util.getport(ui.config('web', 'port', 8000))
+ port = util.getport(ui.config('web', 'port'))
try:
return cls(ui, app, (address, port), handler)
except socket.error as inst: