jenkinsci/mercurial-plugin — pull request #8 by dbarbieri (2011-10-18 20:20:40+00:00)
Title: Adding a verify checkbox to verify/wipe/reclone corrupt checkouts

I have been working on the mercurial plugin internally at my company for a
couple months and have broadly applicable change that has been tested
rigorously and so I am going to offer it upstream.

It simply adds a checkbox to enable a 'hg verify' before any updates. This
solves 2 issues that we were having:
1) clobber error - just general repo corruption which requires wiping and
recloning
2) interrupted clone + SCM checkout retry on = disaster. Start with an
incomplete/interrupted clone, then on the 2nd retry it finds (I assume) the
.hg folder and so it does a update instead. This actually succeeds and the
build goes on only to find that many of the files are missing. Failed build
emails go out to half the company and I look like an idiot.

the change only adds functionality, is off by default, and works recursively
with subrepos.

Thanks.

-Devin Barbieri

PS This is a single changeset follow up to a previous pull request which later necessitated more changes and merging