mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
#989 load global configuration in hgweb on Mercurial 4.1 and later
This commit is contained in:
@@ -36,6 +36,10 @@ from mercurial.hgweb import hgweb, wsgicgi
|
|||||||
|
|
||||||
demandimport.enable()
|
demandimport.enable()
|
||||||
|
|
||||||
|
try:
|
||||||
|
u = uimod.ui.load()
|
||||||
|
except AttributeError:
|
||||||
|
# For installations earlier than Mercurial 4.1
|
||||||
u = uimod.ui()
|
u = uimod.ui()
|
||||||
|
|
||||||
# pass SCM_HTTP_POST_ARGS to enable experimental httppostargs protocol of mercurial
|
# pass SCM_HTTP_POST_ARGS to enable experimental httppostargs protocol of mercurial
|
||||||
|
|||||||
Reference in New Issue
Block a user