changeset 41208:d9eda1c6dfca

archival: construct progress helper through ui.makeprogress() No idea why we didn't.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 13 Jan 2019 14:26:11 +0900
parents 25cec00b333c
children b223fc1c6b4c
files mercurial/archival.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/archival.py	Sat Jan 12 17:47:46 2019 +0900
+++ b/mercurial/archival.py	Sun Jan 13 14:26:11 2019 +0900
@@ -327,8 +327,8 @@
         files.sort()
         scmutil.prefetchfiles(repo, [ctx.rev()],
                               scmutil.matchfiles(repo, files))
-        progress = scmutil.progress(repo.ui, _('archiving'), unit=_('files'),
-                                    total=total)
+        progress = repo.ui.makeprogress(_('archiving'), unit=_('files'),
+                                        total=total)
         progress.update(0)
         for f in files:
             ff = ctx.flags(f)