~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

Merge in nested progress bars

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
    def check(self):
57
57
        self.branch.lock_read()
58
 
        self.progress = bzrlib.ui.ui_factory.progress_bar()
 
58
        self.progress = bzrlib.ui.ui_factory.nested_progress_bar()
59
59
        try:
60
60
            self.progress.update('retrieving inventory', 0, 0)
61
61
            # do not put in init, as it should be done with progess,
75
75
                revno += 1
76
76
                self.check_one_rev(rev_id)
77
77
        finally:
78
 
            self.progress.clear()
 
78
            self.progress.finished()
79
79
            self.branch.unlock()
80
80
 
81
81
    def plan_revisions(self):