diff tests/test-purge @ 4155:4c714ed245d6

purge.py: fix invocation of statwalk
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 06 Mar 2007 17:45:50 -0300
parents 2ebdd33fe456
children c8919eb0f315
line wrap: on
line diff
--- 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