[PATCH 15 of 18 "] verify: document `_verifychangelog`

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Mar 6 11:29:31 EST 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1551871318 -3600
#      Wed Mar 06 12:21:58 2019 +0100
# Node ID c1c1c85983e94ec91a6cb2a44f2784567483e6f1
# Parent  1acdc1069618867d7b3e0add9a435fad2810ab64
# EXP-Topic verify
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c1c1c85983e9
verify: document `_verifychangelog`

We document the method input, output and checks.

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -198,6 +198,21 @@ class verifier(object):
         return 0
 
     def _verifychangelog(self):
+        """verify the changelog of a repository
+
+        The following checks are performed:
+        - all of `_checkrevlog` checks,
+        - all of `_checkentry` checks (for each revisions),
+        - each revision can be read.
+
+        The function returns some of the data observed in the changesets as a
+        (mflinkrevs, filelinkrevs) tuples:
+        - mflinkrevs:   is a { manifest-node -> [changelog-rev] } mapping
+        - filelinkrevs: is a { file-path -> [changelog-rev] } mapping
+
+        If a matcher was specified, filelinkrevs will only contains matched
+        files.
+        """
         ui = self.ui
         repo = self.repo
         match = self.match


More information about the Mercurial-devel mailing list