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 33:575262e0eacb

update.sh

Permissions: -rwxr-xr-x

Other formats: Feeds:
#!/bin/sh
set -x
HGPLAIN=1
export HGPLAIN
nodes=`./data/newesthg/hg incoming -R ./data/testhg --quiet -T '{node}\n'`
if [ "$nodes" ] ; then
./data/newesthg/hg pull -R ./data/testhg
./bench.py $nodes
fi
./bench.py --retry $nodes