##// END OF EJS Templates
replace "i in range(len(xs))" with "i, x in enumerate(xs)"...
replace "i in range(len(xs))" with "i, x in enumerate(xs)" The remaining occurrences should be the ones where "xs" is mutated or where "i" is used for index arithmetic.

File last commit:

r8167:6c82beaa default
r8632:9e055cfd default
Show More
test-fncache
51 lines | 629 B | text/plain | TextLexer
#!/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