Mercurial > public > mercurial-scm > hg-stable
diff tests/test-diffdir @ 1723:fde8fb2cbede
Fix diff against an empty file (issue124) and add a test for this.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 15 Feb 2006 14:22:16 +0100 |
parents | 4f81068ed8cd |
children | 7544700fd931 |
line wrap: on
line diff
--- a/tests/test-diffdir Wed Feb 15 04:37:47 2006 +0100 +++ b/tests/test-diffdir Wed Feb 15 14:22:16 2006 +0100 @@ -12,3 +12,7 @@ hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" + +echo foo > a +hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ + -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"