##// END OF EJS Templates
debugbuildannotatecache: use progress helper...
Martin von Zweigbergk -
r40873:901f6ef6 default
parent child Browse files
Show More
@@ -261,8 +261,9 b' def debugbuildannotatecache(ui, repo, *p'
261 261 repo.prefetchfastannotate(paths)
262 262 else:
263 263 # server, or full repo
264 progress = ui.makeprogress(_('building'), total=len(paths))
264 265 for i, path in enumerate(paths):
265 ui.progress(_('building'), i, total=len(paths))
266 progress.update(i)
266 267 with facontext.annotatecontext(repo, path) as actx:
267 268 try:
268 269 if actx.isuptodate(rev):
@@ -281,5 +282,4 b' def debugbuildannotatecache(ui, repo, *p'
281 282 # cache for other files.
282 283 ui.warn(_('fastannotate: %s: failed to '
283 284 'build cache: %r\n') % (path, ex))
284 # clear the progress bar
285 ui.write()
285 progress.complete()
General Comments 0
You need to be logged in to leave comments. Login now