verify: rename the `checklog` to `_checkrevlog`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 06 Mar 2019 14:15:19 +0100
changeset 41874 1f412223f5bb
parent 41873 08d977451f26
child 41875 2f1f475e9646
verify: rename the `checklog` to `_checkrevlog` The method is for internal use only. In addition we make the method name explicitly contains `revlog` to make it clearer it is checking higher level revlog properties.
mercurial/verify.py
--- a/mercurial/verify.py	Wed Mar 06 14:10:23 2019 +0100
+++ b/mercurial/verify.py	Wed Mar 06 14:15:19 2019 +0100
@@ -76,7 +76,7 @@
             fmsg = pycompat.byterepr(inst)
         self._err(linkrev, "%s: %s" % (msg, fmsg), filename)
 
-    def checklog(self, obj, name, linkrev):
+    def _checkrevlog(self, obj, name, linkrev):
         """verify high level property of a revlog
 
         - revlog is present,
@@ -207,7 +207,7 @@
         mflinkrevs = {}
         filelinkrevs = {}
         seen = {}
-        self.checklog(cl, "changelog", 0)
+        self._checkrevlog(cl, "changelog", 0)
         progress = ui.makeprogress(_('checking'), unit=_('changesets'),
                                    total=len(repo))
         for i in repo:
@@ -253,7 +253,7 @@
         if self.refersmf:
             # Do not check manifest if there are only changelog entries with
             # null manifests.
-            self.checklog(mf, label, 0)
+            self._checkrevlog(mf, label, 0)
         progress = ui.makeprogress(_('checking'), unit=_('manifests'),
                                    total=len(mf))
         for i in mf: