Skip to content
Snippets Groups Projects
Commit 3b9d4bdf authored by Simon Fraser's avatar Simon Fraser
Browse files

Bug 1554733 Use robustcheckout for periodic file udpates r=tomprince

parent 8548942e
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,6 @@ WGET="wget -nv"
UNTAR="tar -zxf"
DIFF="$(command -v diff) -u"
BASEDIR="${HOME}"
TOOLSDIR="${HOME}/tools"
SCRIPTDIR="$(realpath "$(dirname "$0")")"
HG="$(command -v hg)"
......@@ -382,18 +381,11 @@ function compare_remote_settings_files {
return 1
}
function clone_build_tools {
rm -fr "${TOOLSDIR}"
CLONE_CMD="${HG} clone https://hg.mozilla.org/build/tools ${TOOLSDIR}"
${CLONE_CMD}
}
# Clones an hg repo
function clone_repo {
cd "${BASEDIR}"
if [ ! -d "${REPODIR}" ]; then
CLONE_CMD="${HG} clone ${HGREPO} ${REPODIR}"
${CLONE_CMD}
${HG} robustcheckout --sharebase /tmp/hg-store -b default "${HGREPO}" "${REPODIR}"
fi
${HG} -R ${REPODIR} pull
......@@ -613,9 +605,6 @@ else
fi
fi
# Currently less reliable than regular 'hg'
# clone_build_tools
clone_repo
COMMIT_MESSAGE="No Bug, ${BRANCH} repo-update"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment