tests/test-mq
changeset 2935 1c66aad252f9
parent 2934 2f190e998eb3
child 2990 61fcd9fac434
--- a/tests/test-mq	Wed Aug 16 19:49:45 2006 -0700
+++ b/tests/test-mq	Wed Aug 16 19:50:21 2006 -0700
@@ -141,12 +141,14 @@
 chmod +x new
 hg add new
 hg qrefresh
-sed -e "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/new
+sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
+    -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/new
 
 hg qnew -m'copy file' copy
 hg cp new copy
 hg qrefresh
-sed -e "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/copy
+sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
+    -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/copy
 
 hg qpop
 hg qpush