localrepo: add optional validation (defaults to off) for incoming changes
This verifies that all manifests are present for incoming changes,
and all files for those manifests are also present. This is a simple
first-pass, and could be better, but seems like a valuable thing to
have, as I've seen pushes in the past that propagated revlog corruption.
#!/bin/sh
"$TESTDIR/hghave" symlink || exit 80
hg init a
ln -s a link
cd a
echo foo > foo
hg status
hg status ../link