equal
deleted
inserted
replaced
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 |