43:d9569e15bcc3
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.

previous change 1:cb057921cd8c

settings.py

Permissions: -rw-r--r--

Other formats: Feeds:
import os
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')
# webapp templates
TEMPLATES = rel('templates')