comparison mercurial/ui.py @ 25125:bd625cd4e5e7

progress: get the extremely verbose output out of default debug When the progress extension is not enabled, each call to 'ui.progress' used to issue a debug message. This results is a very verbose output and often redundant in tests. Dropping it makes tests less volatile to factor they do not meant to test. We had to alter the sed trick in 'test-rename-merge2.t'. Sed is used to drop all output from a certain point and hidding the progress output remove its anchor. So we anchor on something else.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 09 May 2015 23:40:40 -0700
parents 09049042ab99
children 3f0744eeaeaf
comparison
equal deleted inserted replaced
25124:d08a13215d1a 25125:bd625cd4e5e7
900 900
901 All topics should be marked closed by setting pos to None at 901 All topics should be marked closed by setting pos to None at
902 termination. 902 termination.
903 ''' 903 '''
904 904
905 if pos is None or not self.debugflag: 905 if pos is None or not self.configbool('progress', 'debug'):
906 return 906 return
907 907
908 if unit: 908 if unit:
909 unit = ' ' + unit 909 unit = ' ' + unit
910 if item: 910 if item: