Commit 3b9d4bdf authored by Simon Fraser's avatar Simon Fraser
Browse files

Bug 1554733 Use robustcheckout for periodic file udpates r=tomprince

parent 8548942e
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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"