mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
b6685f18df
Different platforms implement -R differently (and it produces unneccessarily verbose output in this case). find is just as good and more consistent. Unbreaks test on OpenBSD. Edited by pmezard: added 'sort' call
71 lines
945 B
Bash
Executable File
71 lines
945 B
Bash
Executable File
#!/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
|
|
|
|
# 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
|
|
find .hg | sort
|
|
|
|
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
|
|
find .hg | sort
|
|
|
|
exit 0
|