Mercurial > hg
diff mercurial/verify.py @ 41871:9e737ca539f6
verify: make `checkentry` a private method
This method is for internal use only.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 06 Mar 2019 12:20:50 +0100 |
parents | 00c9fde75c1a |
children | 08d977451f26 |
line wrap: on
line diff
--- 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)