# HG changeset patch # User Christian Ebert # Date 1185780121 -3600 # Node ID d7ddb4e378f35cee6d07cad2abd182ecfb6e1741 # Parent e55e3f6c6608c0dd5b032e338f7b332add799350 test: use grep -v instead of sed to delete lines diff -r e55e3f6c6608 -r d7ddb4e378f3 tests/test-keyword --- a/tests/test-keyword Fri Jul 27 10:34:48 2007 +0200 +++ b/tests/test-keyword Mon Jul 30 08:22:01 2007 +0100 @@ -9,9 +9,9 @@ EOF echo % help -# sed for backwards compatibility +# grep for backwards compatibility hg help keyword \ -| sed -e '/^list of commands/d' -e '/hg -v help keyword/d' -e '/^$/d' +| grep -E -v '^list of commands|hg -v help keyword|^$' echo % hg kwdemo hg --quiet kwdemo --default \ @@ -96,8 +96,8 @@ EOF echo % interrupted commit -# redirection and sed for backwards compatibility -HGEDITOR=false hg commit 2>&1 | sed -e '/edit failed:/d' +# redirection and grep for backwards compatibility +HGEDITOR=false hg commit 2>&1 | grep -F -v 'edit failed:' echo % status hg status @@ -136,7 +136,7 @@ EOF echo % incoming # remove path to temp dir for backwards compatibility -hg incoming | sed -e '/^comparing with/d' +hg incoming | grep -v '^comparing with' echo % switch off expansion cd ../Test