Patchwork D5531: progress: deprecate ui.progress()

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 7:49 a.m.
Message ID <2d3e70bb336548e2ea6e9af181d9b4fc@localhost.localdomain>
Download mbox | patch
Permalink /patch/37774/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 7:49 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG44914de4e915: progress: deprecate ui.progress() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: lothiraldan, 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.1")
         progress = self.makeprogress(topic, unit, total)
         if pos is not None:
             progress.update(pos, item=item)