comparison tests/test-verify @ 8104:fd7cc930ab8f

Merge with crew-stable
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Apr 2009 11:16:50 -0500
parents baaa832fd253
children 6c82beaaa11a
comparison
equal deleted inserted replaced
7971:6ea0318daf75 8104:fd7cc930ab8f
1 #!/bin/sh 1 #!/bin/sh
2 2
3 echo % prepare repo 3 echo % prepare repo
4 hg init 4 hg init a
5 cd a
5 echo "some text" > FOO.txt 6 echo "some text" > FOO.txt
6 echo "another text" > bar.txt 7 echo "another text" > bar.txt
7 echo "more text" > QUICK.txt 8 echo "more text" > QUICK.txt
8 hg add 9 hg add
9 hg ci -d '0 0' -mtest1 10 hg ci -d '0 0' -mtest1
21 22
22 echo 23 echo
23 echo % verify 24 echo % verify
24 hg verify 25 hg verify
25 26
27 cd ..
28
29 echo % test revlog corruption
30 hg init b
31 cd b
32
33 touch a
34 hg add a
35 hg ci -m a
36
37 echo 'corrupted' > b
38 head -c 20 .hg/store/data/a.i > start
39 cat start b > .hg/store/data/a.i
40
41 echo
42 echo % verify
43 hg verify
44
26 exit 0 45 exit 0