# HG changeset patch # User Pierre-Yves David # Date 1551871250 -3600 # Node ID 9e737ca539f6878a14d5b10a78eb8abf1574bbf2 # Parent 00c9fde75c1a006b7f1799ca480da0007d83983a verify: make `checkentry` a private method This method is for internal use only. diff -r 00c9fde75c1a -r 9e737ca539f6 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)