##// END OF EJS Templates
remotefilelog: use progress helper when analyzing repos...
Martin von Zweigbergk -
r40875:05afb32e default
parent child Browse files
Show More
@@ -811,14 +811,14 b' def gcclient(ui, cachepath):'
811 validrepos = []
811 validrepos = []
812 keepkeys = set()
812 keepkeys = set()
813
813
814 _analyzing = _("analyzing repositories")
815
816 sharedcache = None
814 sharedcache = None
817 filesrepacked = False
815 filesrepacked = False
818
816
819 count = 0
817 count = 0
818 progress = ui.makeprogress(_("analyzing repositories"), unit="repos",
819 total=len(repos))
820 for path in repos:
820 for path in repos:
821 ui.progress(_analyzing, count, unit="repos", total=len(repos))
821 progress.update(count)
822 count += 1
822 count += 1
823 try:
823 try:
824 path = ui.expandpath(os.path.normpath(path))
824 path = ui.expandpath(os.path.normpath(path))
@@ -868,7 +868,7 b' def gcclient(ui, cachepath):'
868 return fileserverclient.getcachekey(reponame, fname, hex(fnode))
868 return fileserverclient.getcachekey(reponame, fname, hex(fnode))
869 keepkeys = repackmod.keepset(repo, keyfn=keyfn, lastkeepkeys=keepkeys)
869 keepkeys = repackmod.keepset(repo, keyfn=keyfn, lastkeepkeys=keepkeys)
870
870
871 ui.progress(_analyzing, None)
871 progress.complete()
872
872
873 # write list of valid repos back
873 # write list of valid repos back
874 oldumask = os.umask(0o002)
874 oldumask = os.umask(0o002)
General Comments 0
You need to be logged in to leave comments. Login now