progress: deprecate ui.progress()
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 08 Jan 2019 09:50:40 -0800
changeset 41225 44914de4e915
parent 41224 b129837190f7
child 41226 0f2b8d51bfdf
progress: deprecate ui.progress() It is now just a weird wrapper for ui.makeprogress(). Differential Revision: https://phab.mercurial-scm.org/D5531
mercurial/ui.py
--- a/mercurial/ui.py	Tue Jan 15 15:43:00 2019 -0800
+++ b/mercurial/ui.py	Tue Jan 08 09:50:40 2019 -0800
@@ -1691,6 +1691,8 @@
         All topics should be marked closed by setting pos to None at
         termination.
         '''
+        self.deprecwarn("use ui.makeprogress() instead of ui.progress()",
+                        "5.1")
         progress = self.makeprogress(topic, unit, total)
         if pos is not None:
             progress.update(pos, item=item)