> 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.