infra/codestorage/hg-repo-sync

Paddy 2015-10-11 Parent:cc08c8ed2128

2:9cc2f3a01ab5 Go to Latest

infra/codestorage/hg-repo-sync/sleep.sh

Use pip to install Mercurial, pin to 3.5.2 We want to use a relatively recent (but consistent) version of Mercurial, so I had to switch to using pip to install Mercurial, so I could pin it to version 3.5.2. apt-get didn't have version 3 available.

History
1 #!/bin/bash
2 SLEEP=${SLEEP:-5}
3 sleepfor="$[($RANDOM % 5) + $SLEEP]m"
4 echo "Sleeping for $sleepfor..."
5 sleep $sleepfor