[PATCH 05 of 18 "] verify: document the `exc` method

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1551868270 -3600
#      Wed Mar 06 11:31:10 2019 +0100
# Node ID 6c59b746e8b71df6d5f0cc02a72fedac099a2a80
# Parent  d6124b30caf951800f61a53a72792c2e6a98e393
# EXP-Topic verify
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 6c59b746e8b7
verify: document the `exc` method

Simple method, get simple documentation.

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -70,6 +70,7 @@ class verifier(object):
         self.errors += 1
 
     def exc(self, linkrev, msg, inst, filename=None):
+        """record exception raised during the verify process"""
         fmsg = pycompat.bytestr(inst)
         if not fmsg:
             fmsg = pycompat.byterepr(inst)


More information about the Mercurial-devel mailing list