D5531: progress: deprecate ui.progress()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jan 8 18:11:25 UTC 2019


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It is now just a weird wrapper for ui.makeprogress().

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5531

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -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()",
+                        "4.10")
         progress = self.makeprogress(topic, unit, total)
         if pos is not None:
             progress.update(pos, item=item)



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list