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)