diff mercurial/scmutil.py @ 38379:ef692614e601

progress: hide update(None) in a new complete() method update(None) seemed a bit cryptic. Differential Revision: https://phab.mercurial-scm.org/D3774
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 17 Jun 2018 22:13:41 -0700
parents bec1212eceaa
children 800f5a2c869e
line wrap: on
line diff
--- a/mercurial/scmutil.py	Sat Jun 16 08:22:10 2018 +0530
+++ b/mercurial/scmutil.py	Sun Jun 17 22:13:41 2018 -0700
@@ -1302,6 +1302,9 @@
     def increment(self, step=1, item="", total=None):
         self.update(self.pos + step, item, total)
 
+    def complete(self):
+        self.update(None)
+
     def _print(self, item):
         self.ui.progress(self.topic, self.pos, item, self.unit,
                          self.total)