Mercurial > hg
comparison mercurial/verify.py @ 41875:2f1f475e9646
verify: document `_verifychangelog`
We document the method input, output and checks.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 06 Mar 2019 12:21:58 +0100 |
parents | 1f412223f5bb |
children | 5ad5a70df2f7 |
comparison
equal
deleted
inserted
replaced
41874:1f412223f5bb | 41875:2f1f475e9646 |
---|---|
196 % min(self.badrevs)) | 196 % min(self.badrevs)) |
197 return 1 | 197 return 1 |
198 return 0 | 198 return 0 |
199 | 199 |
200 def _verifychangelog(self): | 200 def _verifychangelog(self): |
201 """verify the changelog of a repository | |
202 | |
203 The following checks are performed: | |
204 - all of `_checkrevlog` checks, | |
205 - all of `_checkentry` checks (for each revisions), | |
206 - each revision can be read. | |
207 | |
208 The function returns some of the data observed in the changesets as a | |
209 (mflinkrevs, filelinkrevs) tuples: | |
210 - mflinkrevs: is a { manifest-node -> [changelog-rev] } mapping | |
211 - filelinkrevs: is a { file-path -> [changelog-rev] } mapping | |
212 | |
213 If a matcher was specified, filelinkrevs will only contains matched | |
214 files. | |
215 """ | |
201 ui = self.ui | 216 ui = self.ui |
202 repo = self.repo | 217 repo = self.repo |
203 match = self.match | 218 match = self.match |
204 cl = repo.changelog | 219 cl = repo.changelog |
205 | 220 |