##// END OF EJS Templates
verify: add some inline documentation to the top level `verify` method...
marmoute -
r42035:4da2261e default
parent child Browse files
Show More
@@ -135,10 +135,9 b' class verifier(object):'
135 This method run all verifications, displaying issues as they are found.
135 This method run all verifications, displaying issues as they are found.
136
136
137 return 1 if any error have been encountered, 0 otherwise."""
137 return 1 if any error have been encountered, 0 otherwise."""
138 # initial validation and generic report
138 repo = self.repo
139 repo = self.repo
139
140 ui = repo.ui
140 ui = repo.ui
141
142 if not repo.url().startswith('file:'):
141 if not repo.url().startswith('file:'):
143 raise error.Abort(_("cannot verify bundle or remote repos"))
142 raise error.Abort(_("cannot verify bundle or remote repos"))
144
143
@@ -149,15 +148,14 b' class verifier(object):'
149 ui.status(_("repository uses revlog format %d\n") %
148 ui.status(_("repository uses revlog format %d\n") %
150 (self.revlogv1 and 1 or 0))
149 (self.revlogv1 and 1 or 0))
151
150
151 # data verification
152 mflinkrevs, filelinkrevs = self._verifychangelog()
152 mflinkrevs, filelinkrevs = self._verifychangelog()
153
154 filenodes = self._verifymanifest(mflinkrevs)
153 filenodes = self._verifymanifest(mflinkrevs)
155 del mflinkrevs
154 del mflinkrevs
156
157 self._crosscheckfiles(filelinkrevs, filenodes)
155 self._crosscheckfiles(filelinkrevs, filenodes)
158
159 totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs)
156 totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs)
160
157
158 # final report
161 ui.status(_("checked %d changesets with %d changes to %d files\n") %
159 ui.status(_("checked %d changesets with %d changes to %d files\n") %
162 (len(repo.changelog), filerevisions, totalfiles))
160 (len(repo.changelog), filerevisions, totalfiles))
163 if self.warnings:
161 if self.warnings:
General Comments 0
You need to be logged in to leave comments. Login now