# HG changeset patch # User Marcin Kuzminski # Date 2018-01-04 12:17:07 # Node ID 9d03aa86576c372994ab842bc05a51277e7b0f9d # Parent 44fe73c38763457a94ad669bea589317106191a9 mercurial: disable paginate for all commands to prevent potential gunicorn issues. paginate can trigger some singals, and generally is for usage in terminals. diff --git a/vcsserver/hg.py b/vcsserver/hg.py --- a/vcsserver/hg.py +++ b/vcsserver/hg.py @@ -53,6 +53,7 @@ def make_ui_from_config(repo_config): # make our hgweb quiet so it doesn't print output baseui.setconfig('ui', 'quiet', 'true') + baseui.setconfig('ui', 'paginate', 'never') # force mercurial to only use 1 thread, otherwise it may try to set a # signal in a non-main thread, thus generating a ValueError. baseui.setconfig('worker', 'numcpus', 1)