Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 18422:f009804e2a43
validate: check for spurious incoming filelog entries
Accepting those will lead to "mild corruption", correctly reported as
an error by hg verify, but often not a problem in practice.
Enabled when server.validate is switched on.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Tue, 11 Dec 2012 20:13:21 +0100 |
parents | ecf4f79cc600 |
children | 4d9f7dd2ac82 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Jan 17 01:06:00 2013 +0100 +++ b/mercurial/localrepo.py Tue Dec 11 20:13:21 2012 +0100 @@ -2311,6 +2311,9 @@ n = fl.node(new) if n in needs: needs.remove(n) + else: + raise util.Abort( + _("received spurious file revlog entry")) if not needs: del needfiles[f] self.ui.progress(_('files'), None)