infra/codestorage/hg-repo-sync

Paddy 2015-10-11 Parent:cc08c8ed2128

2:9cc2f3a01ab5 Go to Latest

infra/codestorage/hg-repo-sync/run.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
3 DOPUSH=${PUSH:-"1"}
4 DOPULL=${PULL:-"1"}
5 DOSLEEP=${DOSLEEP:-"1"}
7 if [ $DOPUSH -eq "1" ]; then
8 /bin/bash /usr/local/bin/helpers/push.sh
9 fi
11 if [ $DOPULL -eq "1" ]; then
12 /bin/bash /usr/local/bin/helpers/pull.sh
13 fi
15 if [ $DOSLEEP -eq "1" ]; then
16 /bin/bash /usr/local/bin/helpers/sleep.sh
17 fi