Skip to content
Snippets Groups Projects
Commit 6575e22d authored by Georges Racinet's avatar Georges Racinet
Browse files

Mercurial config: ui.nontty=true

Related to heptapod#717 (was technically the place where it ended
up in a crash)
parent 36e1bf13
No related branches found
No related tags found
1 merge request!130Mercurial config tweaks for this server application
......@@ -62,7 +62,17 @@
def __init__(self, storages):
self.storages = storages
self.ui = uimod.ui.load()
self.init_ui()
def init_ui(self):
"""Prepare the base ``ui`` instance from which all will derive.
See also :meth:`hgweb.__init__`
"""
ui = self.ui = uimod.ui.load()
# prevents `ui.interactive()` to crash (see heptapod#717)
ui.setconfig(b'ui', b'nontty', b'true', b'hgitaly')
def load_repo(self, repository: Repository, context):
"""Load the repository from storage name and relative path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment