lazyindex: speed up __getitem__
This function is fairly performance sensitive, so we make a couple
ugly tweaks:
- keep all entries packed so we needn't test entry types
- fold index lookup/load into unpack call to eliminate
local variable setting
#!/bin/sh
"$TESTDIR/hghave" symlink || exit 80
hg init a
ln -s a link
cd a
echo foo > foo
hg status
hg status ../link