summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-01-15 12:22:38 +1000
committerteor <teor@torproject.org>2020-01-15 12:22:38 +1000
commit536eeb4589b1ce6f9cbbd36ec73cd5dd9e84ceaa (patch)
tree126330483406072487332fda7c196b901f994e56 /scripts
parentb958529dbfbacbf8c17ab9fd761fe773125f4572 (diff)
downloadtor-536eeb4589b1ce6f9cbbd36ec73cd5dd9e84ceaa.tar.gz
tor-536eeb4589b1ce6f9cbbd36ec73cd5dd9e84ceaa.zip
scripts/git: Fix git-merge-forward after removing 0.2.9
We need a test branch for the earliest maint branch (maint-0.3.5), but we can't merge forward into it, because there is no previous active maint branch. Also, edit a git-push-all comment that still said "029". Bugfix on 32772; bug not in any released version of tor.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git/git-merge-forward.sh12
-rwxr-xr-xscripts/git/git-push-all.sh2
2 files changed, 8 insertions, 6 deletions
diff --git a/scripts/git/git-merge-forward.sh b/scripts/git/git-merge-forward.sh
index c6e02294c8..8e61f6e644 100755
--- a/scripts/git/git-merge-forward.sh
+++ b/scripts/git/git-merge-forward.sh
@@ -89,9 +89,9 @@ TOR_WKT_NAME=${TOR_WKT_NAME:-"tor-wkt"}
# Only used in test branch mode
# There is no previous branch to merge forward, so the second and fifth items
# must be blank ("")
+MAINT_035_TB=( "maint-0.3.5" "" "$GIT_PATH/$TOR_WKT_NAME/maint-0.3.5" \
+ "_035" "")
# Used in maint/release merge and test branch modes
-MAINT_035=( "maint-0.3.5" "maint-0.2.9" "$GIT_PATH/$TOR_WKT_NAME/maint-0.3.5" \
- "_035" "_029")
MAINT_040=( "maint-0.4.0" "maint-0.3.5" "$GIT_PATH/$TOR_WKT_NAME/maint-0.4.0" \
"_040" "_035")
MAINT_041=( "maint-0.4.1" "maint-0.4.0" "$GIT_PATH/$TOR_WKT_NAME/maint-0.4.1" \
@@ -113,7 +113,7 @@ ORIGIN_PATH="$GIT_PATH/$TOR_MASTER_NAME"
# SC2034 -- shellcheck thinks that these are unused. We know better.
ACTUALLY_THESE_ARE_USED=<<EOF
-${MAINT_035[0]}
+${MAINT_035_TB[0]}
${MAINT_040[0]}
${MAINT_041[0]}
${MAINT_042[0]}
@@ -175,7 +175,8 @@ if [ -z "$TEST_BRANCH_PREFIX" ]; then
# List of all worktrees to work on. All defined above. Ordering is important.
# Always the maint-* branch BEFORE then the release-*.
WORKTREE=(
- MAINT_035[@]
+ # We don't merge forward into MAINT_035_TB[@], because it's the earliest
+ # maint branch
RELEASE_035[@]
MAINT_040[@]
@@ -194,7 +195,8 @@ else
# Test branch mode: merge to maint only
WORKTREE=(
- MAINT_035[@]
+ # We want a test branch based on the earliest maint branch
+ MAINT_035_TB[@]
MAINT_040[@]
diff --git a/scripts/git/git-push-all.sh b/scripts/git/git-push-all.sh
index 671fed2c1e..466b843f35 100755
--- a/scripts/git/git-push-all.sh
+++ b/scripts/git/git-push-all.sh
@@ -99,7 +99,7 @@ PUSH_SAME=${TOR_PUSH_SAME:-0}
# Controlled by the -t <test-branch-prefix> option. The test branch base
# name option makes git-merge-forward.sh create new test branches:
-# <tbbn>_029, <tbbn>_035, ... , <tbbn>_master, and merge forward.
+# <tbbn>_035, <tbbn>_040, ... , <tbbn>_master, and merge forward.
TEST_BRANCH_PREFIX=
while getopts ":hr:st:" opt; do