tests/test-purge
changeset 4155 4c714ed245d6
parent 4145 2ebdd33fe456
child 4310 c8919eb0f315
--- a/tests/test-purge	Tue Feb 27 09:05:36 2007 +0100
+++ b/tests/test-purge	Tue Mar 06 17:45:50 2007 -0300
@@ -50,6 +50,25 @@
 hg purge -v
 ls
 
+echo % delete nested directories from a subdir
+mkdir -p untracked_directory/nested_directory
+cd directory
+hg purge -p
+hg purge -v
+cd ..
+ls
+
+echo % delete only part of the tree
+mkdir -p untracked_directory/nested_directory
+touch directory/untracked_file
+cd directory
+hg purge -p ../untracked_directory
+hg purge -v ../untracked_directory
+cd ..
+ls
+ls directory/untracked_file
+rm directory/untracked_file
+
 echo % delete ignored files
 touch ignored
 hg purge -p