Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/basestore.py @ 18486:1067a6240f86 stable
largefiles: verify all files in each revision and report errors in any revision
Verify used 'any' and would stop verifying after the first failure in each
changeset.
The exit code only reported the result from the last changeset.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 28 Jan 2013 15:19:44 +0100 |
parents | ce5f529deb36 |
children | f1700480bef7 |
line wrap: on
line diff
--- a/hgext/largefiles/basestore.py Mon Jan 28 15:19:44 2013 +0100 +++ b/hgext/largefiles/basestore.py Mon Jan 28 15:19:44 2013 +0100 @@ -106,8 +106,9 @@ cctx = self.repo[rev] cset = "%d:%s" % (cctx.rev(), node.short(cctx.node())) - failed = util.any(self._verifyfile( - cctx, cset, contents, standin, verified) for standin in cctx) + for standin in cctx: + if self._verifyfile(cctx, cset, contents, standin, verified): + failed = True numrevs = len(verified) numlfiles = len(set([fname for (fname, fnode) in verified]))