test-fncache
51 lines
| 629 B
| text/plain
|
TextLexer
/ tests / test-fncache
Adrian Buehlmann
|
r7290 | #!/bin/sh | ||
echo "% init repo1" | ||||
hg init repo1 | ||||
cd repo1 | ||||
echo | ||||
echo "% add a; ci" | ||||
echo "some text" > a | ||||
hg add | ||||
Martin Geisler
|
r8167 | hg ci -m first | ||
Adrian Buehlmann
|
r7290 | |||
echo | ||||
echo "% cat .hg/store/fncache" | ||||
cat .hg/store/fncache | ||||
echo | ||||
echo "% add a.i/b; ci" | ||||
mkdir a.i | ||||
echo "some other text" > a.i/b | ||||
hg add | ||||
Martin Geisler
|
r8167 | hg ci -m second | ||
Adrian Buehlmann
|
r7290 | |||
echo | ||||
echo "% cat .hg/store/fncache" | ||||
cat .hg/store/fncache | ||||
echo | ||||
echo "% add a.i.hg/c; ci" | ||||
mkdir a.i.hg | ||||
echo "yet another text" > a.i.hg/c | ||||
hg add | ||||
Martin Geisler
|
r8167 | hg ci -m third | ||
Adrian Buehlmann
|
r7290 | |||
echo | ||||
echo "% cat .hg/store/fncache" | ||||
cat .hg/store/fncache | ||||
echo | ||||
echo "% hg verify" | ||||
hg verify | ||||
echo | ||||
echo "% rm .hg/store/fncache" | ||||
rm .hg/store/fncache | ||||
echo | ||||
echo "% hg verify" | ||||
hg verify | ||||
exit 0 | ||||