Changeset View
Changeset View
Standalone View
Standalone View
contrib/source-control-tools/patch-recipes/apply-revision.sh
- This file was moved from contrib/source-control-tools/apply-revision.sh.
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
REVISION="$1" | REVISION="$1" | ||||
TOPLEVEL=$(git rev-parse --show-toplevel) | TOPLEVEL=$(git rev-parse --show-toplevel) | ||||
"${TOPLEVEL}"/contrib/source-control-tools/check-revision-accepted.sh "${REVISION}" | "${TOPLEVEL}"/contrib/source-control-tools/check-revision-accepted.sh "${REVISION}" | ||||
# IMPORTANT NOTE: The patch is trusted past this point because it has been reviewed | # IMPORTANT NOTE: The patch is trusted past this point because it has been reviewed | ||||
# and accepted. That includes any changes that may affect this script. | # and accepted. That includes any changes that may affect this script. | ||||
# shellcheck source=sanitize-conduit-token.sh | # shellcheck source=../sanitize-conduit-token.sh | ||||
source "${TOPLEVEL}"/contrib/source-control-tools/sanitize-conduit-token.sh | source "${TOPLEVEL}"/contrib/source-control-tools/sanitize-conduit-token.sh | ||||
# Pull the patch from Phabricator and rebase it on latest master | # Pull the patch from Phabricator and rebase it on latest master | ||||
"${TOPLEVEL}"/contrib/source-control-tools/autopatch.sh --revision "${REVISION}" | "${TOPLEVEL}"/contrib/source-control-tools/autopatch.sh --revision "${REVISION}" | ||||
# Stop logging verbosely to prevent leaking CONDUIT_TOKEN | # Stop logging verbosely to prevent leaking CONDUIT_TOKEN | ||||
set +x | set +x | ||||
# Check that the revision is ready to land (tests passed, etc.) | # Check that the revision is ready to land (tests passed, etc.) | ||||
Show All 10 Lines |