Show More
@@ -153,6 +153,34 b' class verifier(object):' | |||
|
153 | 153 | ui.status(_("repository uses revlog format %d\n") % |
|
154 | 154 | (revlogv1 and 1 or 0)) |
|
155 | 155 | |
|
156 | self._verifychangelog(mflinkrevs, filelinkrevs) | |
|
157 | ||
|
158 | self._verifymanifest(mflinkrevs, filenodes) | |
|
159 | ||
|
160 | self._crosscheckfiles(mflinkrevs, filelinkrevs, filenodes) | |
|
161 | ||
|
162 | totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs) | |
|
163 | revisions += filerevisions | |
|
164 | ||
|
165 | ui.status(_("%d files, %d changesets, %d total revisions\n") % | |
|
166 | (totalfiles, len(cl), revisions)) | |
|
167 | if self.warnings: | |
|
168 | ui.warn(_("%d warnings encountered!\n") % self.warnings) | |
|
169 | if self.fncachewarned: | |
|
170 | ui.warn(_('hint: run "hg debugrebuildfncache" to recover from ' | |
|
171 | 'corrupt fncache\n')) | |
|
172 | if self.errors: | |
|
173 | ui.warn(_("%d integrity errors encountered!\n") % self.errors) | |
|
174 | if badrevs: | |
|
175 | ui.warn(_("(first damaged changeset appears to be %d)\n") | |
|
176 | % min(badrevs)) | |
|
177 | return 1 | |
|
178 | ||
|
179 | def _verifychangelog(self, mflinkrevs, filelinkrevs): | |
|
180 | ui = self.ui | |
|
181 | repo = self.repo | |
|
182 | cl = repo.changelog | |
|
183 | ||
|
156 | 184 | ui.status(_("checking changesets\n")) |
|
157 | 185 | seen = {} |
|
158 | 186 | self.checklog(cl, "changelog", 0) |
@@ -175,27 +203,6 b' class verifier(object):' | |||
|
175 | 203 | self.exc(i, _("unpacking changeset %s") % short(n), inst) |
|
176 | 204 | ui.progress(_('checking'), None) |
|
177 | 205 | |
|
178 | self._verifymanifest(mflinkrevs, filenodes) | |
|
179 | ||
|
180 | self._crosscheckfiles(mflinkrevs, filelinkrevs, filenodes) | |
|
181 | ||
|
182 | totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs) | |
|
183 | revisions += filerevisions | |
|
184 | ||
|
185 | ui.status(_("%d files, %d changesets, %d total revisions\n") % | |
|
186 | (totalfiles, len(cl), revisions)) | |
|
187 | if self.warnings: | |
|
188 | ui.warn(_("%d warnings encountered!\n") % self.warnings) | |
|
189 | if self.fncachewarned: | |
|
190 | ui.warn(_('hint: run "hg debugrebuildfncache" to recover from ' | |
|
191 | 'corrupt fncache\n')) | |
|
192 | if self.errors: | |
|
193 | ui.warn(_("%d integrity errors encountered!\n") % self.errors) | |
|
194 | if badrevs: | |
|
195 | ui.warn(_("(first damaged changeset appears to be %d)\n") | |
|
196 | % min(badrevs)) | |
|
197 | return 1 | |
|
198 | ||
|
199 | 206 | def _verifymanifest(self, mflinkrevs, filenodes): |
|
200 | 207 | repo = self.repo |
|
201 | 208 | ui = self.ui |
General Comments 0
You need to be logged in to leave comments.
Login now