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

login
register
mail settings
Submitter Pierre-Yves David
Date May 5, 2016, 5:05 p.m.
Message ID <020642ebb270f0ec4d17.1462467956@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/14928/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Pierre-Yves David - May 5, 2016, 5:05 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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

Patch

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"""