# HG changeset patch # User Yuya Nishihara # Date 2019-01-13 05:26:11 # Node ID d9eda1c6dfcac3bc78440087975782b7a48fa5c8 # Parent 25cec00b333c333d433c3aed180b2e0de6fef2b3 archival: construct progress helper through ui.makeprogress() No idea why we didn't. diff --git a/mercurial/archival.py b/mercurial/archival.py --- a/mercurial/archival.py +++ b/mercurial/archival.py @@ -327,8 +327,8 @@ def archive(repo, dest, node, kind, deco 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)