Mercurial > hg
changeset 33191:8065b4ab0ed7
configitems: register the 'badserver.closeafteraccept' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:27:36 +0200 |
parents | 0ef40bb20264 |
children | c538fca0d511 |
files | tests/badserverext.py |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/badserverext.py Fri Jun 30 03:28:18 2017 +0200 +++ b/tests/badserverext.py Fri Jun 30 03:27:36 2017 +0200 @@ -33,10 +33,21 @@ 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__ = (