contrib/merge-test-compat.sh
branchstable
changeset 5080 6db9e2350948
parent 3133 13a4c35f7a0b
child 5081 17fac26833da
equal deleted inserted replaced
5077:39029a6d33d4 5080:6db9e2350948
     1 #!/bin/bash
     1 #!/bin/bash
     2 set -euox pipefail
     2 set -euox pipefail
     3 
     3 
     4 unset GREP_OPTIONS
     4 unset GREP_OPTIONS
     5 NOTOPIC="--config experimental.topic-mode=ignore"
       
     6 
     5 
     7 compatbranches=`hg branches --quiet | grep 'mercurial-' | grep -v ':' | sort -n --reverse`
     6 compatbranches=$(hg branches --quiet | grep 'mercurial-' | grep -v ':' | sort -n --reverse)
     8 prev='stable'
     7 prev='stable'
     9 for branch in $compatbranches; do
     8 for branch in $compatbranches; do
    10     hg up $branch
     9     hg up "$branch"
    11     hg merge $prev
    10     hg merge "$prev"
    12     hg commit -m "test-compat: merge $prev into $branch"
    11     hg commit -m "test-compat: merge $prev into $branch"
    13     prev=$branch
    12     prev=$branch
    14 done
    13 done
    15