verify: make `checkentry` a private method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 06 Mar 2019 12:20:50 +0100
changeset 41876 9e737ca539f6
parent 41875 00c9fde75c1a
child 41877 3f3f962457b2
verify: make `checkentry` a private method This method is for internal use only.
mercurial/verify.py
--- a/mercurial/verify.py	Wed Mar 06 12:18:04 2019 +0100
+++ b/mercurial/verify.py	Wed Mar 06 12:20:50 2019 +0100
@@ -93,7 +93,7 @@
         elif self.revlogv1:
             self._warn(_("warning: `%s' uses revlog format 0") % name)
 
-    def checkentry(self, obj, i, node, seen, linkrevs, f):
+    def _checkentry(self, obj, i, node, seen, linkrevs, f):
         """verify a single revlog entry
 
         arguments are:
@@ -206,7 +206,7 @@
         for i in repo:
             progress.update(i)
             n = cl.node(i)
-            self.checkentry(cl, i, n, seen, [i], "changelog")
+            self._checkentry(cl, i, n, seen, [i], "changelog")
 
             try:
                 changes = cl.read(n)
@@ -253,7 +253,7 @@
             if not dir:
                 progress.update(i)
             n = mf.node(i)
-            lr = self.checkentry(mf, i, n, seen, mflinkrevs.get(n, []), label)
+            lr = self._checkentry(mf, i, n, seen, mflinkrevs.get(n, []), label)
             if n in mflinkrevs:
                 del mflinkrevs[n]
             elif dir:
@@ -430,7 +430,7 @@
             for i in fl:
                 revisions += 1
                 n = fl.node(i)
-                lr = self.checkentry(fl, i, n, seen, linkrevs, f)
+                lr = self._checkentry(fl, i, n, seen, linkrevs, f)
                 if f in filenodes:
                     if havemf and n not in filenodes[f]:
                         self._err(lr, _("%s not in manifests") % (short(n)), f)