Skip to content

Commit 03a97c9

Browse files
authored
Merge pull request dtolnay#39 from dtolnay/minor
Push same commit as both minor and largest patch
2 parents 026b841 + 5529c95 commit 03a97c9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/update-revs.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ patch_releases=(
1414
)
1515

1616
releases() {
17-
printf "%s\n" 1.{0..70}{,.0} ${patch_releases[@]} | sort -V
17+
printf "%s\n" 1.{0..70}.0 ${patch_releases[@]} | sort -V
1818
}
1919

2020
base=$(git rev-parse HEAD)
2121
push=()
2222

23+
declare -A minor
24+
for rev in `releases`; do
25+
minor[${rev%.*}]=$rev
26+
done
27+
2328
for rev in `releases` stable beta nightly; do
2429
echo "Updating $rev branch"
2530
git checkout --quiet "$base"
@@ -29,6 +34,9 @@ for rev in `releases` stable beta nightly; do
2934
git commit --quiet --message "toolchain: $rev"
3035
git checkout --quiet -b $rev
3136
push+=("$rev:refs/heads/$rev")
37+
if [ ${minor[${rev%.*}]} == $rev ]; then
38+
push+=("$rev:refs/heads/${rev%.*}")
39+
fi
3240
done
3341

3442
for tool in clippy miri; do

0 commit comments

Comments
 (0)