2008-10-29 15:37:35 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "% init repo1"
|
|
|
|
hg init repo1
|
|
|
|
cd repo1
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "% add a; ci"
|
|
|
|
echo "some text" > a
|
|
|
|
hg add
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -m first
|
2008-10-29 15:37:35 +03:00
|
|
|
|
|
|
|
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
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -m second
|
2008-10-29 15:37:35 +03:00
|
|
|
|
|
|
|
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
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -m third
|
2008-10-29 15:37:35 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-05-27 01:49:53 +04:00
|
|
|
# try non store repo encoding
|
|
|
|
cd ..
|
|
|
|
echo % non store repo
|
|
|
|
hg --config format.usestore=False init foo
|
|
|
|
cd foo
|
|
|
|
mkdir tst.d
|
|
|
|
echo foo > tst.d/foo
|
|
|
|
hg ci -Amfoo
|
2009-06-05 04:11:11 +04:00
|
|
|
find .hg | sort
|
2009-05-27 01:49:53 +04:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
echo % non fncache repo
|
|
|
|
hg --config format.usefncache=False init bar
|
|
|
|
cd bar
|
|
|
|
mkdir tst.d
|
|
|
|
echo foo > tst.d/Foo
|
|
|
|
hg ci -Amfoo
|
2009-06-05 04:11:11 +04:00
|
|
|
find .hg | sort
|
2009-05-27 01:49:53 +04:00
|
|
|
|
2008-10-29 15:37:35 +03:00
|
|
|
exit 0
|