diff -r e9827c85c50b -r c2e55c21db27 mercurial/archival.py --- a/mercurial/archival.py Wed Dec 15 16:35:09 2010 +0100 +++ b/mercurial/archival.py Mon Nov 29 16:17:05 2010 +0100 @@ -262,9 +262,14 @@ write('.hg_archival.txt', 0644, False, metadata) - for f in ctx: + total = len(ctx.manifest()) + repo.ui.progress(_('archiving'), 0, unit=_('files'), total=total) + for i, f in enumerate(ctx): ff = ctx.flags(f) write(f, 'x' in ff and 0755 or 0644, 'l' in ff, ctx[f].data) + repo.ui.progress(_('archiving'), i + 1, item=f, + unit=_('files'), total=total) + repo.ui.progress(_('archiving'), None) if subrepos: for subpath in ctx.substate: