[PATCH] Fix wrong redirection in test-rebase-parameters

Stefano Tortarolo stefano.tortarolo at gmail.com
Wed Aug 27 05:53:28 CDT 2008


# HG changeset patch
# User Stefano Tortarolo <stefano.tortarolo at gmail.com>
# Date 1219834179 -7200
# Node ID 40cacb049ef6fab9a42aadfeb0d1a2ec23e64d13
# Parent  ce94b3236ea4541aa4b96512a1155d4694a36e62
Fix wrong redirection in test-rebase-parameters

diff -r ce94b3236ea4 -r 40cacb049ef6 tests/test-rebase-parameters
--- a/tests/test-rebase-parameters	Mon Aug 25 23:04:56 2008 +0200
+++ b/tests/test-rebase-parameters	Wed Aug 27 12:49:39 2008 +0200
@@ -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 @@ hg update -C 5
 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/'


More information about the Mercurial-devel mailing list