Workaround to work with less sophisticated sed versions.
authorSascha Wilde <wilde@sha-bang.de>
Tue, 27 Jun 2006 21:56:11 +0200
changeset 2528 049f930f18c1
parent 2527 c51fad25e59e
child 2529 9419855309cd
Workaround to work with less sophisticated sed versions. For example NetBSD sed doesn't know about '\|'.
tests/test-globalopts
--- a/tests/test-globalopts	Tue Jun 27 09:57:06 2006 +0200
+++ b/tests/test-globalopts	Tue Jun 27 21:56:11 2006 +0200
@@ -62,7 +62,7 @@
 hg --cwd a --time tip 2>&1 | grep '^Time:' | sed 's/[0-9][0-9]*/x/g'
 
 echo %% --version
-hg --version -q | sed 's/version \([a-f0-9+]*\|unknown\)/version xxx/'
+hg --version -q | sed 's/version [^)]*/version xxx/'
 
 echo %% -h/--help
 hg -h