Fix wrong redirection in test-rebase-parameters

This commit is contained in:
Stefano Tortarolo 2008-08-27 12:49:39 +02:00
parent 99f53b6386
commit 2892a4755b

View File

@ -30,7 +30,7 @@ createrepo () {
addcommit "r2" 7
}
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo "% These fail"
echo
echo "% Use continue and abort"
@ -64,40 +64,40 @@ echo "% Rebase with no arguments (from 3 onto 7)"
hg update -C 5
hg rebase 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Rebase with base == '.' => same as no arguments (from 3 onto 7)"
hg update -C 5
hg rebase --base . 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Rebase with dest == `hg branch` => same as no arguments (from 3 onto 7)"
hg update -C 5
hg rebase --dest `hg branch` 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Specify only source (from 4 onto 7)"
hg rebase --source 4 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Specify only dest (from 3 onto 6)"
hg update -C 5
hg rebase --dest 6 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Specify only base (from 3 onto 7)"
hg rebase --base 5 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Specify source and dest (from 4 onto 6)"
hg rebase --source 4 --dest 6 2>&1 | sed 's/\(saving bundle to \).*/\1/'
createrepo > /dev/null 2&>1
createrepo > /dev/null 2>&1
echo
echo "% Specify base and dest (from 3 onto 6)"
hg rebase --base 4 --dest 6 2>&1 | sed 's/\(saving bundle to \).*/\1/'