# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1336916205 -7200 # Node ID 6524260be54362767ef25a4366129b6150be753a # Parent 6bc8046e3d0a66113f3c98789e15cbe8c2ce69e9 show a total for verification progress diff --git a/hgsubversion/verify.py b/hgsubversion/verify.py --- a/hgsubversion/verify.py +++ b/hgsubversion/verify.py @@ -38,9 +38,12 @@ def verify(ui, repo, args=None, **opts): svnfiles = set() result = 0 + hgfiles = set(ctx) - util.ignoredfiles + svndata = svn.list_files(branchpath, srev) for i, (fn, type) in enumerate(svndata): - util.progress(ui, 'verify', i) + util.progress(ui, 'verify', i, total=len(hgfiles)) + if type != 'f': continue svnfiles.add(fn) @@ -60,7 +63,6 @@ def verify(ui, repo, args=None, **opts): ui.write('wrong flags for: %s\n' % fn) result = 1 - hgfiles = set(ctx) - util.ignoredfiles if hgfiles != svnfiles: unexpected = hgfiles - svnfiles for f in sorted(unexpected): @@ -70,6 +72,6 @@ def verify(ui, repo, args=None, **opts): ui.write('missing file: %s\n' % f) result = 1 - util.progress(ui, 'verify', None) + util.progress(ui, 'verify', None, total=len(hgfiles)) return result