tests/test-purge
changeset 4310 c8919eb0f315
parent 4155 4c714ed245d6
child 4311 1043e4b27ab9
--- a/tests/test-purge	Wed Apr 04 04:22:08 2007 -0300
+++ b/tests/test-purge	Wed Mar 28 21:34:12 2007 +0200
@@ -74,3 +74,26 @@
 hg purge -p
 hg purge -v
 ls
+
+echo % abort with missing files until we support name mangling filesystems
+touch untracked_file
+rm r1
+# hide error messages to avoid changing the output when the text changes
+hg purge -p 2> /dev/null
+if [ $? -ne 0 ]; then
+    echo "refused to run"
+fi
+if [ -f untracked_file ]; then
+    echo "untracked_file still around"
+fi
+hg purge -p --force
+hg purge -v 2> /dev/null
+if [ $? -ne 0 ]; then
+    echo "refused to run"
+fi
+if [ -f untracked_file ]; then
+    echo "untracked_file still around"
+fi
+hg purge -v --force
+hg revert --all --quiet
+ls