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.
adding a
adding b
adding c
% should succeed
200 Script output follows
/al/
/b/
/c/
200 Script output follows
a
200 Script output follows
b
200 Script output follows
c
% should fail
404 Not Found
error: repository circle not found
404 Not Found
error: repository circle not found
404 Not Found
error: repository circle not found
% collections errors