diff tests/test-diff-ignore-whitespace @ 3199:096f1c73cdc3

Add -D/--nodates options to hg diff/export that removes dates from diff headers and replace uses of sed in the tests with --nodates.
author Stephen Darnell <stephen@darnell.plus.com>
date Tue, 26 Sep 2006 00:05:24 +0100
parents 7a87aebd848e
children 372d93f03d3a
line wrap: on
line diff
--- a/tests/test-diff-ignore-whitespace	Fri Sep 29 23:14:22 2006 +0200
+++ b/tests/test-diff-ignore-whitespace	Tue Sep 26 00:05:24 2006 +0100
@@ -3,8 +3,7 @@
 # GNU diff is the reference for all of these results.
 
 hgdiff() {
-    hg diff "$@" | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
-                  -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
+    hg diff --nodates "$@"
 }
 
 test_added_blank_lines() {