tests/test-fncache
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 20 May 2009 18:35:41 +0200
changeset 8530 03196ac9a8b9
parent 8167 6c82beaaa11a
child 8633 c31fe74a6633
permissions -rwxr-xr-x
store: refactor the fncache handling put all the fncache file writing and reading in the same place.

#!/bin/sh

echo "% init repo1"
hg init repo1
cd repo1

echo
echo "% add a; ci"
echo "some text" > a
hg add
hg ci -m first

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
hg ci -m second

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
hg ci -m third

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