Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2015 00:03:36 +0800
viewer: compute a weak entity tag from db and repo mtime
This saves running a subprocess with hg -Tjson and rendering pages when there
weren't any updates to the testhg repo or to the database.
Maybe ETag is not the perfect place for this (Last-Modified?), but it works.
settings.py
Permissions: -rw-r--r--
os.environ['HGPLAIN'] = '1' rel = lambda *x: os.path.abspath(os.path.join(os.path.dirname(__file__), *x)) DBPATH = rel('data', 'db.sqlite') HG = rel('data', 'newesthg', 'hg') LOCKFILE = rel('data', 'bench.lock') TESTHGREPO = rel('data', 'testhg') TESTREPO = rel('data', 'testrepo') TEMPLATES = rel('templates')