# HG changeset patch # User Thomas Arendsen Hein # Date 1124085505 -3600 # Node ID e2e7a2462eded5a5f03ec21e5418628fe99d6209 # Parent c711930cf15da1d1ad2be39ef2476e2652d48b45 Addes test for error messages when operating on non-existing files. diff -r c711930cf15d -r e2e7a2462ede tests/test-notfound --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-notfound Mon Aug 15 06:58:25 2005 +0100 @@ -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 diff -r c711930cf15d -r e2e7a2462ede tests/test-notfound.out --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-notfound.out Mon Aug 15 06:58:25 2005 +0100 @@ -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