tests/test-convert
changeset 5441 71e7c86adcb7
parent 5028 36e8983fe44d
child 5556 61fdf2558c0a
--- a/tests/test-convert	Wed Oct 10 15:30:00 2007 -0700
+++ b/tests/test-convert	Wed Oct 10 15:42:00 2007 -0700
@@ -3,6 +3,8 @@
 echo "[extensions]" >> $HGRCPATH
 echo "convert=" >> $HGRCPATH
 
+hg help convert
+
 hg init a
 cd a
 echo a > a
@@ -19,3 +21,17 @@
 cd ..
 hg convert a 2>&1 | grep -v 'subversion python bindings could not be loaded'
 hg --cwd a-hg pull ../a
+
+touch bogusfile
+echo % should fail
+hg convert a bogusfile
+
+mkdir bogusdir
+chmod 000 bogusdir
+
+echo % should fail
+hg convert a bogusdir
+
+echo % should succeed
+chmod 700 bogusdir
+hg convert a bogusdir