Patchwork [11,of,18,"] verify: make `checkentry` a private method

login
register
mail settings
Submitter Pierre-Yves David
Date March 6, 2019, 4:29 p.m.
Message ID <a09dc0dcd48c837b278e.1551889767@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/39096/
State Accepted
Headers show

Comments

Pierre-Yves David - March 6, 2019, 4:29 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1551871250 -3600
#      Wed Mar 06 12:20:50 2019 +0100
# Node ID a09dc0dcd48c837b278e3603d05fd1036222cff9
# Parent  51efb7d6f032202abaeaed8bf1b3a13a9f426cdd
# EXP-Topic verify
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r a09dc0dcd48c
verify: make `checkentry` a private method

This method is for internal use only.

Patch

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -93,7 +93,7 @@  class verifier(object):
         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 @@  class verifier(object):
         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 @@  class verifier(object):
             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 @@  class verifier(object):
             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)