sapling/mercurial/hgweb
Gregory Szorc bdb55cdf30 hgweb: establish class for holding per request context
Currently, hgweb applications have many instance variables holding
mutated state. This is somewhat problematic because multiple threads
may race accessing or changing this state.

This patch starts a series that will add more thread safety to
hgweb applications. It will do this by moving mutated state out
of hgweb and into per-request instances of the newly established
"requestcontext" class.

Our new class currently behaves like a proxy to hgweb instances. This
should change once all state is captured in it instead of hgweb. The
effectiveness of this proxy is demonstrated by passing instances of
it - not hgweb instances/self - to various functions.
2015-08-22 14:59:36 -07:00
..
__init__.py hgweb: make hgweb.hgweb a unified interface to hgweb/hgwebdir 2010-04-26 11:03:40 -05:00
common.py hgweb: drop the default argument for get_stat 2015-07-03 10:07:51 -07:00
hgweb_mod.py hgweb: establish class for holding per request context 2015-08-22 14:59:36 -07:00
hgwebdir_mod.py hgweb: make refresh interval configurable 2015-08-22 22:59:51 -07:00
protocol.py wireproto: introduce an abstractserverproto class 2014-03-28 11:10:33 -07:00
request.py hgweb: add some documentation 2015-08-22 13:58:59 -07:00
server.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
webcommands.py hgweb: limit branches shown on summary page to 10 2015-09-01 23:35:06 +08:00
webutil.py hgweb: move branchentries code from webcommands to webutil 2015-09-01 22:28:45 +08:00
wsgicgi.py hgweb.cgi: fix internal WSGI emulation (issue3804) 2013-02-04 23:25:25 +01:00