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