Mercurial > hg
changeset 41225:44914de4e915
progress: deprecate ui.progress()
It is now just a weird wrapper for ui.makeprogress().
Differential Revision: https://phab.mercurial-scm.org/D5531
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 08 Jan 2019 09:50:40 -0800 |
parents | b129837190f7 |
children | 0f2b8d51bfdf |
files | mercurial/ui.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)