diff hgext/evolve.py @ 1035:59bc29c84ce0

evolve: hide the OBSEXC message behind a config option This will lets most people ignore them while keep evolve dev having a close look at them. Some of the most useful messages will be reintroduced for all in coming changeset.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 08 Aug 2014 17:16:29 -0700
parents 5fd28e46e8f5
children 70de12b7721a
line wrap: on
line diff
--- a/hgext/evolve.py	Fri Aug 08 17:10:31 2014 -0700
+++ b/hgext/evolve.py	Fri Aug 08 17:16:29 2014 -0700
@@ -2226,11 +2226,13 @@
 #####################################################################
 
 def obsexcmsg(ui, message):
-    message = 'OBSEXC: ' + message
-    ui.status(message)
+    if ui.configbool('experimental', 'verbose-obsolescence-exchange', False):
+        message = 'OBSEXC: ' + message
+        ui.status(message)
 
 def obsexcprg(ui, *args, **kwargs):
-    ui.progress('OBSEXC', *args, **kwargs)
+    if ui.configbool('experimental', 'verbose-obsolescence-exchange', False):
+        ui.progress('OBSEXC', *args, **kwargs)
 
 
 @command('debugobsoleterelevant',