comparison mercurial/progress.py @ 34746:54fa3db5becf

configitems: register the 'progress.format' config
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 22:53:17 +0200
parents a57c938e7ac8
children d541042f32f6
comparison
equal deleted inserted replaced
34745:0b46440b1b45 34746:54fa3db5becf
99 self.refresh = float(self.ui.config( 99 self.refresh = float(self.ui.config(
100 'progress', 'refresh')) 100 'progress', 'refresh'))
101 self.changedelay = max(3 * self.refresh, 101 self.changedelay = max(3 * self.refresh,
102 float(self.ui.config( 102 float(self.ui.config(
103 'progress', 'changedelay'))) 103 'progress', 'changedelay')))
104 self.order = self.ui.configlist( 104 self.order = self.ui.configlist('progress', 'format')
105 'progress', 'format',
106 default=['topic', 'bar', 'number', 'estimate'])
107 self.estimateinterval = self.ui.configwith( 105 self.estimateinterval = self.ui.configwith(
108 float, 'progress', 'estimateinterval') 106 float, 'progress', 'estimateinterval')
109 107
110 def show(self, now, topic, pos, item, unit, total): 108 def show(self, now, topic, pos, item, unit, total):
111 if not shouldprint(self.ui): 109 if not shouldprint(self.ui):