Patchwork D5531: progress: deprecate ui.progress()

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2019, 6:28 p.m.
Message ID <4e55868c907a705adef65724196a1c50@localhost.localdomain>
Download mbox | patch
Permalink /patch/37563/
State Not Applicable
Headers show

Comments

phabricator - Jan. 8, 2019, 6:28 p.m.
martinvonz updated this revision to Diff 13082.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5531?vs=13081&id=13082

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

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




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

Patch

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()",
+                        "5.0")
         progress = self.makeprogress(topic, unit, total)
         if pos is not None:
             progress.update(pos, item=item)