[PATCH 6 of 7] devel: use the 'config' argument for the dirstate normalisation develwarn

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu May 5 13:05:56 EDT 2016


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1462457080 -7200
#      Thu May 05 16:04:40 2016 +0200
# Node ID 020642ebb270f0ec4d171b9b4425ace630798f65
# Parent  efee6a430f8e63e9d5d9c73cb0a013e07c2ea62d
# EXP-Topic develwarn
devel: use the 'config' argument for the dirstate normalisation develwarn

diff -r efee6a430f8e -r 020642ebb270 contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py	Thu May 05 16:04:19 2016 +0200
+++ b/contrib/dirstatenonnormalcheck.py	Thu May 05 16:04:40 2016 +0200
@@ -25,10 +25,10 @@ def checkconsistency(ui, orig, dmap, _no
     """Compute nonnormalset from dmap, check that it matches _nonnormalset"""
     nonnormalcomputedmap = nonnormalentries(dmap)
     if _nonnormalset != nonnormalcomputedmap:
-        ui.develwarn("%s call to %s\n" % (label, orig))
-        ui.develwarn("inconsistency in nonnormalset\n")
-        ui.develwarn("[nonnormalset] %s\n" % _nonnormalset)
-        ui.develwarn("[map] %s\n" % nonnormalcomputedmap)
+        ui.develwarn("%s call to %s\n" % (label, orig), config='dirstate')
+        ui.develwarn("inconsistency in nonnormalset\n", config='dirstate')
+        ui.develwarn("[nonnormalset] %s\n" % _nonnormalset, config='dirstate')
+        ui.develwarn("[map] %s\n" % nonnormalcomputedmap, config='dirstate')
 
 def _checkdirstate(orig, self, arg):
     """Check nonnormal set consistency before and after the call to orig"""


More information about the Mercurial-devel mailing list