3 # We want to catch any unexpected failure, and exit immediately
6 # Download helper for hg, to be called from the download wrapper script
9 # .../hg [-q] OUT_FILE REPO_URL CSET BASENAME
12 # HG : the hg command to call
15 while getopts :q OPT
; do
18 \?) printf "unknown option '%s'\n" "${OPTARG}" >&2; exit 1;;
28 ${HG} clone ${verbose} --noupdate --rev "${cset}" "${repo}" "${basename}"
30 ${HG} archive ${verbose} --repository "${basename}" --type tgz \
31 --prefix "${basename}" --rev "${cset}" \