Mercurial > hg
diff tests/test-diff-ignore-whitespace @ 2610:7a87aebd848e
Fix sed expression for OS X and Solaris 2.6.
Matches previous fixes in other tests.
author | Lee Cantey <lcantey@gmail.com> |
---|---|
date | Thu, 13 Jul 2006 11:19:35 -0700 |
parents | bdf9d809467c |
children | 096f1c73cdc3 |
line wrap: on
line diff
--- a/tests/test-diff-ignore-whitespace Thu Jul 13 09:40:01 2006 -0700 +++ b/tests/test-diff-ignore-whitespace Thu Jul 13 11:19:35 2006 -0700 @@ -3,7 +3,8 @@ # GNU diff is the reference for all of these results. hgdiff() { - hg diff "$@" | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" + hg diff "$@" | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ + -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" } test_added_blank_lines() {