# HG changeset patch # User Matt Harbison # Date 1544417330 18000 # Node ID 4265bfb53dd3c8961993a8af8a41691bcf03d6d7 # Parent 47719d7c581f18c1e6c98b05e2f79307c2ea50bd hgweb: register web.comparisoncontext to the config table This was caught in some server side logging added to debug py3 issues. diff -r 47719d7c581f -r 4265bfb53dd3 mercurial/configitems.py --- a/mercurial/configitems.py Tue Dec 04 17:04:19 2018 -0500 +++ b/mercurial/configitems.py Sun Dec 09 23:48:50 2018 -0500 @@ -1274,6 +1274,9 @@ coreconfigitem('web', 'cache', default=True, ) +coreconfigitem('web', 'comparisoncontext', + default=5, +) coreconfigitem('web', 'contact', default=None, ) diff -r 47719d7c581f -r 4265bfb53dd3 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Dec 04 17:04:19 2018 -0500 +++ b/mercurial/hgweb/webcommands.py Sun Dec 09 23:48:50 2018 -0500 @@ -858,7 +858,7 @@ if 'context' in web.req.qsparams: context = parsecontext(web.req.qsparams['context']) else: - context = parsecontext(web.config('web', 'comparisoncontext', '5')) + context = parsecontext(web.config('web', 'comparisoncontext')) def filelines(f): if f.isbinary():