tests/test-purge
changeset 8043 b777dd8f7836
parent 6757 55c71226eceb
child 8044 c1e2b7407dc3
--- a/tests/test-purge	Fri Apr 10 13:06:02 2009 +0200
+++ b/tests/test-purge	Fri Apr 10 21:20:28 2009 +0200
@@ -34,6 +34,12 @@
 
 echo % delete an untracked file
 touch untracked_file
+touch untracked_file_readonly
+python <<EOF
+import os, stat
+f= 'untracked_file_readonly'
+os.chmod(f, os.stat(f).st_mode & ~stat.S_IWRITE)
+EOF
 hg purge -p
 hg purge -v
 ls