##// END OF EJS Templates
verify: replace "output parameters" by return values...
Martin von Zweigbergk -
r27695:fb0cc863 default
parent child Browse files
Show More
@@ -134,9 +134,6 b' class verifier(object):'
134 134
135 135 def verify(self):
136 136 repo = self.repo
137 mflinkrevs = {}
138 filelinkrevs = {}
139 filenodes = {}
140 137
141 138 ui = repo.ui
142 139
@@ -150,9 +147,9 b' class verifier(object):'
150 147 ui.status(_("repository uses revlog format %d\n") %
151 148 (self.revlogv1 and 1 or 0))
152 149
153 self._verifychangelog(mflinkrevs, filelinkrevs)
150 mflinkrevs, filelinkrevs = self._verifychangelog()
154 151
155 self._verifymanifest(mflinkrevs, filenodes)
152 filenodes = self._verifymanifest(mflinkrevs)
156 153
157 154 self._crosscheckfiles(mflinkrevs, filelinkrevs, filenodes)
158 155
@@ -172,12 +169,14 b' class verifier(object):'
172 169 % min(self.badrevs))
173 170 return 1
174 171
175 def _verifychangelog(self, mflinkrevs, filelinkrevs):
172 def _verifychangelog(self):
176 173 ui = self.ui
177 174 repo = self.repo
178 175 cl = repo.changelog
179 176
180 177 ui.status(_("checking changesets\n"))
178 mflinkrevs = {}
179 filelinkrevs = {}
181 180 seen = {}
182 181 self.checklog(cl, "changelog", 0)
183 182 total = len(repo)
@@ -198,13 +197,15 b' class verifier(object):'
198 197 self.refersmf = True
199 198 self.exc(i, _("unpacking changeset %s") % short(n), inst)
200 199 ui.progress(_('checking'), None)
200 return mflinkrevs, filelinkrevs
201 201
202 def _verifymanifest(self, mflinkrevs, filenodes):
202 def _verifymanifest(self, mflinkrevs):
203 203 repo = self.repo
204 204 ui = self.ui
205 205 mf = self.repo.manifest
206 206
207 207 ui.status(_("checking manifests\n"))
208 filenodes = {}
208 209 seen = {}
209 210 if self.refersmf:
210 211 # Do not check manifest if there are only changelog entries with
@@ -233,7 +234,7 b' class verifier(object):'
233 234 self.exc(lr, _("reading manifest delta %s") % short(n), inst)
234 235 ui.progress(_('checking'), None)
235 236
236 return mflinkrevs
237 return filenodes
237 238
238 239 def _crosscheckfiles(self, mflinkrevs, filelinkrevs, filenodes):
239 240 repo = self.repo
General Comments 0
You need to be logged in to leave comments. Login now