[PATCH] localrepo: add optional validation (defaults to off) for incoming changes

Matt Mackall mpm at selenic.com
Thu Feb 11 23:15:11 UTC 2010


On Thu, 2010-02-11 at 16:40 -0600, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <durin42 at gmail.com>
> # Date 1265927863 21600
> # Node ID 5fc090ba08a6b5bad792f2acd2093039ddfdfa04
> # Parent  4cfd0d56be6dcbcfac90bf95e8f8750ab66fd9aa
> 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.

By the way, we could add a second (more expensive) level to this that
guaranteed that pushed file versions could be reconstructed.

-- 
http://selenic.com : development and support for Mercurial and Linux





More information about the Mercurial-devel mailing list