test-fetch: fix non-portable sed regex.
authorGreg Ward <greg-hg@gerg.ca>
Sun, 12 Jul 2009 22:33:00 -0400
changeset 9121 a85a3d398cc3
parent 9120 d3b995dd4eab
child 9122 a9eae2f3241c
child 9135 df881932362f
test-fetch: fix non-portable sed regex. (s/...\+/.../ appears to be a GNU-ism: this test broke on OS X and NetBSD. Changing \+ to * fixes it, although that is a slightly less strict regex.)
tests/test-fetch
--- a/tests/test-fetch	Mon Jul 13 20:19:17 2009 +0200
+++ b/tests/test-fetch	Sun Jul 12 22:33:00 2009 -0400
@@ -194,7 +194,7 @@
 hg --cwd i1726r1 ci -m second
 echo c > i1726r2/a
 hg --cwd i1726r2 ci -m third
-HGMERGE=true hg --cwd i1726r2 fetch ../i1726r1 | sed 's/new changeset 3:[0-9a-zA-Z]\+/new changeset 3/'
+HGMERGE=true hg --cwd i1726r2 fetch ../i1726r1 | sed 's/new changeset 3:[0-9a-zA-Z]* /new changeset 3 /'
 hg --cwd i1726r2 heads default --template '{rev}\n'
 
 "$TESTDIR/killdaemons.py"