contrib/merge-test-compat.sh
author Anton Shestakov <av6@dwimlabs.net>
Mon, 20 Jan 2020 22:43:11 +0700
branchstable
changeset 5080 6db9e2350948
parent 3133 13a4c35f7a0b
child 5081 17fac26833da
permissions -rwxr-xr-x
contrib: shellcheck merge-test-compat.sh

#!/bin/bash
set -euox pipefail

unset GREP_OPTIONS

compatbranches=$(hg branches --quiet | grep 'mercurial-' | grep -v ':' | sort -n --reverse)
prev='stable'
for branch in $compatbranches; do
    hg up "$branch"
    hg merge "$prev"
    hg commit -m "test-compat: merge $prev into $branch"
    prev=$branch
done