Mercurial > hg
changeset 5689:c2d0ed7f4af8
Move diffing missing file test and remove test-notfound
No point to have a test dedicated to this diff behaviour.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 24 Dec 2007 12:22:33 +0100 |
parents | 883d887c6408 |
children | 1b365c5723bc |
files | tests/test-diff-hashes tests/test-diff-hashes.out tests/test-notfound tests/test-notfound.out |
diffstat | 4 files changed, 3 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-diff-hashes Mon Dec 24 12:14:43 2007 +0100 +++ b/tests/test-diff-hashes Mon Dec 24 12:22:33 2007 +0100 @@ -2,6 +2,7 @@ hg init a cd a +hg diff not found echo bar > foo hg add foo hg ci -m 'add foo' -d '1000000 0'
--- a/tests/test-diff-hashes.out Mon Dec 24 12:14:43 2007 +0100 +++ b/tests/test-diff-hashes.out Mon Dec 24 12:22:33 2007 +0100 @@ -1,3 +1,5 @@ +found: No such file or directory +not: No such file or directory quiet: --- a/foo Mon Jan 12 13:46:40 1970 +0000 +++ b/foo Mon Jan 12 13:46:41 1970 +0000
--- a/tests/test-notfound Mon Dec 24 12:14:43 2007 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#!/bin/sh - -hg init - -echo "Is there an error message when trying to diff non-existing files?" -hg diff not found - -echo "Is there an error message when trying to add non-existing files?" -hg add not found
--- a/tests/test-notfound.out Mon Dec 24 12:14:43 2007 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -Is there an error message when trying to diff non-existing files? -found: No such file or directory -not: No such file or directory -Is there an error message when trying to add non-existing files? -found does not exist! -not does not exist!