comparison 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
comparison
equal deleted inserted replaced
3198:a32f65549b9e 3199:096f1c73cdc3
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # GNU diff is the reference for all of these results. 3 # GNU diff is the reference for all of these results.
4 4
5 hgdiff() { 5 hgdiff() {
6 hg diff "$@" | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ 6 hg diff --nodates "$@"
7 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
8 } 7 }
9 8
10 test_added_blank_lines() { 9 test_added_blank_lines() {
11 printf '\nhello world\n\ngoodbye world\n\n' >foo 10 printf '\nhello world\n\ngoodbye world\n\n' >foo
12 11