Mercurial > hg
comparison mercurial/progress.py @ 33249:391da1416038
configitems: register the 'progress.clear-complete' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:44:02 +0200 |
parents | ed42e00a5c4e |
children | bbc57a7e8823 |
comparison
equal
deleted
inserted
replaced
33248:be00b61e4c4a | 33249:391da1416038 |
---|---|
189 self.lastprint = 0 | 189 self.lastprint = 0 |
190 | 190 |
191 def complete(self): | 191 def complete(self): |
192 if not shouldprint(self.ui): | 192 if not shouldprint(self.ui): |
193 return | 193 return |
194 if self.ui.configbool('progress', 'clear-complete', default=True): | 194 if self.ui.configbool('progress', 'clear-complete'): |
195 self.clear() | 195 self.clear() |
196 else: | 196 else: |
197 self._writeerr('\n') | 197 self._writeerr('\n') |
198 self._flusherr() | 198 self._flusherr() |
199 | 199 |