mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
#989 load global configuration in hgweb on Mercurial 4.1 and later
This commit is contained in:
@@ -36,7 +36,11 @@ from mercurial.hgweb import hgweb, wsgicgi
|
|||||||
|
|
||||||
demandimport.enable()
|
demandimport.enable()
|
||||||
|
|
||||||
u = uimod.ui()
|
try:
|
||||||
|
u = uimod.ui.load()
|
||||||
|
except AttributeError:
|
||||||
|
# For installations earlier than Mercurial 4.1
|
||||||
|
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
|
||||||
# SCM_HTTP_POST_ARGS is set by HgCGIServlet
|
# SCM_HTTP_POST_ARGS is set by HgCGIServlet
|
||||||
|
|||||||
Reference in New Issue
Block a user