cookutils diff cooker @ rev 164
cooker: store last wok rev to be used by CGI and so avois hg head call on each page load (even faster now)
| author | Christophe Lincoln <pankso@slitaz.org> |
|---|---|
| date | Sun May 15 15:55:10 2011 +0200 (2011-05-15) |
| parents | c42a0f2c2826 |
| children | 0d3a737e695e |
line diff
1.1 --- a/cooker Wed May 11 03:34:21 2011 +0200 1.2 +++ b/cooker Sun May 15 15:55:10 2011 +0200 1.3 @@ -394,6 +394,9 @@ 1.4 echo "hg:pull" > $command 1.5 cd ${wok}-hg && hg pull -u | log_commits 1.6 new=$(hg head --template '{rev}\n') 1.7 + # Store last rev to be used by CGI so it dont need to call hg head 1.8 + # on each load. 1.9 + echo "$new" > $CACHE/wokrev 1.10 1.11 # Sync build wok with rsync so we don't take care about removing old 1.12 # files as before.