# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:27:36 # Node ID 8065b4ab0ed7cc8fafccf42bc3d4f7a6a6a90561 # Parent 0ef40bb202643a4f50eef725a8aaa4b434e5f6d2 configitems: register the 'badserver.closeafteraccept' config diff --git a/tests/badserverext.py b/tests/badserverext.py --- a/tests/badserverext.py +++ b/tests/badserverext.py @@ -33,10 +33,21 @@ from __future__ import absolute_import import socket +from mercurial import( + registrar, +) + from mercurial.hgweb import ( server, ) +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('badserver', 'closeafteraccept', + default=False, +) + # We can't adjust __class__ on a socket instance. So we define a proxy type. class socketproxy(object): __slots__ = (