Changeset View
Changeset View
Standalone View
Standalone View
contrib/source-control-tools/autopatch.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
# Copyright (c) 2019 The Bitcoin developers | # Copyright (c) 2019-2020 The Bitcoin developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
export LC_ALL=C.UTF-8 | export LC_ALL=C.UTF-8 | ||||
set -euxo pipefail | set -euxo pipefail | ||||
DEFAULT_PATCH_ARGS="--skip-dependencies" | # --force is necessary to skip the "sanity check" step, which conflicts with | ||||
# stacked revisions that contain already-landed dependencies. | |||||
DEFAULT_PATCH_ARGS="--skip-dependencies --force" | |||||
DEFAULT_REMOTE="origin" | DEFAULT_REMOTE="origin" | ||||
DEFAULT_BRANCH="master" | DEFAULT_BRANCH="master" | ||||
help_message() { | help_message() { | ||||
set +x | set +x | ||||
echo "Apply a patch from Phabricator cleanly on latest master." | echo "Apply a patch from Phabricator cleanly on latest master." | ||||
echo "" | echo "" | ||||
echo "Options:" | echo "Options:" | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |