Mercurial > hg > mercurial-crew-with-dirclash
changeset 909:e2e7a2462ede
Addes test for error messages when operating on non-existing files.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 15 Aug 2005 06:58:25 +0100 |
parents | c711930cf15d |
children | 891b6a262c4b |
files | tests/test-notfound tests/test-notfound.out |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100755 --- /dev/null +++ b/tests/test-notfound @@ -0,0 +1,9 @@ +#!/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
new file mode 100644 --- /dev/null +++ b/tests/test-notfound.out @@ -0,0 +1,9 @@ ++ hg init +Is there an error message when trying to diff non-existing files? ++ hg diff not found +not: No such file or directory +found: No such file or directory +Is there an error message when trying to add non-existing files? ++ hg add not found +not: No such file or directory +found: No such file or directory