[PATCH 01 of 18 "] verify: document the `warn` method

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1551867785 -3600
#      Wed Mar 06 11:23:05 2019 +0100
# Node ID 4df3541cd0704c1df6476b04a2b83aa7ff247ad8
# Parent  82d9728ace9535057d77df6c920385861ec00072
# EXP-Topic verify
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 4df3541cd070
verify: document the `warn` method

This is the first bit of an effort to document and augment the verify code.

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -52,6 +52,7 @@ class verifier(object):
         self.warnorphanstorefiles = True
 
     def warn(self, msg):
+        """record a "warning" level issue"""
         self.ui.warn(msg + "\n")
         self.warnings += 1
 


More information about the Mercurial-devel mailing list