Mercurial > hg
diff mercurial/ui.py @ 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 | 929999d963b8 |
children | b0e3f2d7c143 |
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)