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