tests/test-verify
changeset 8016 baaa832fd253
parent 6898 69aeaaaf6e07
child 8167 6c82beaaa11a
--- a/tests/test-verify	Tue Mar 31 07:56:28 2009 +0200
+++ b/tests/test-verify	Mon Apr 06 19:48:11 2009 +0200
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 echo % prepare repo
-hg init
+hg init a
+cd a
 echo "some text" > FOO.txt
 echo "another text" > bar.txt
 echo "more text" > QUICK.txt
@@ -23,4 +24,22 @@
 echo % verify
 hg verify
 
+cd ..
+
+echo % test revlog corruption
+hg init b
+cd b
+
+touch a
+hg add a
+hg ci -m a
+
+echo 'corrupted' > b
+head -c 20 .hg/store/data/a.i > start
+cat start b > .hg/store/data/a.i
+
+echo
+echo % verify
+hg verify
+
 exit 0