This is an archive of the discontinued Mercurial Phabricator instance.

fastannotate: use progress helper
ClosedPublic

Authored by martinvonz on Dec 5 2018, 12:39 PM.

Details

Summary

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Dec 5 2018, 12:39 PM
yuja added a subscriber: yuja.Dec 6 2018, 6:38 AM
if ismainbranch: # need to write to linelog
  • if not self.ui.quiet:
  • progress += 1
  • self.ui.progress(_('building cache'), progress,
  • total=len(newmainbranch))

+ progress.increment()

This one is BC, but I think that's okay.

This revision was automatically updated to reflect the committed changes.