# HG changeset patch # User Augie Fackler # Date 1266868571 21600 # Node ID 4a1a68713773598d1f0e0bc0735391d17128eaf3 # Parent ebecf034e52a9e18d04eb2c863c481f64f972933 rebuildmeta: use ui.progress for better user feedback diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -97,8 +97,9 @@ def rebuildmeta(ui, repo, hg_repo_path, skipped = set() + numrevs = len(repo) for rev in repo: - + ui.progress('rebuild', rev, total=numrevs) ctx = repo[rev] convinfo = ctx.extra().get('convert_revision', None) if not convinfo: @@ -208,6 +209,7 @@ def rebuildmeta(ui, repo, hg_repo_path, and droprev(cctx.extra().get('convert_revision', '@')) == droprev(convinfo)): branchinfo.pop(branch, None) break + ui.progress('rebuild', None, total=numrevs) # save off branch info branchinfofile = open(os.path.join(svnmetadir, 'branch_info'), 'w')