##// END OF EJS Templates
verify: find correct first corrupted cset for missing/corrupted revlogs
Benoit Boissinot -
r7833:794def2f default
parent child Browse files
Show More
@@ -172,17 +172,18 b' def _verify(repo):'
172 172
173 173 files = util.sort(util.unique(filenodes.keys() + filelinkrevs.keys()))
174 174 for f in files:
175 lr = filelinkrevs[f][0]
175 176 try:
176 177 fl = repo.file(f)
177 178 except error.RevlogError, e:
178 err(0, _("broken revlog! (%s)") % e, f)
179 err(lr, _("broken revlog! (%s)") % e, f)
179 180 continue
180 181
181 182 for ff in fl.files():
182 183 try:
183 184 del storefiles[ff]
184 185 except KeyError:
185 err(0, _("missing revlog!"), ff)
186 err(lr, _("missing revlog!"), ff)
186 187
187 188 checklog(fl, f)
188 189 seen = {}
@@ -36,8 +36,8 b' checking manifests'
36 36 crosschecking files in changesets and manifests
37 37 checking files
38 38 data/a.i@0: missing revlog!
39 data/a.i.hg.hg/c.i@0: missing revlog!
40 data/a.i.hg/b.i@0: missing revlog!
39 data/a.i.hg.hg/c.i@2: missing revlog!
40 data/a.i.hg/b.i@1: missing revlog!
41 41 3 files, 3 changesets, 3 total revisions
42 42 3 integrity errors encountered!
43 43 (first damaged changeset appears to be 0)
General Comments 0
You need to be logged in to leave comments. Login now