Mercurial > hg
changeset 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 | 6c5b1b5cc160 |
children | 1b4eb1f92433 |
files | tests/test-diff-ignore-whitespace |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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() {