~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Robert Collins
  • Date: 2007-08-22 22:32:23 UTC
  • mto: This revision was merged to the branch mainline in revision 2744.
  • Revision ID: robertc@robertcollins.net-20070822223223-0heetwybcuonp00g
Fix an off-by-one in check.py that leads to the progress bar showing
complete for a phase but not actually being complete; if the last file id
checked is big this is confusing. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        weave_ids = []
157
157
        if self.repository.weave_store.listable():
158
158
            weave_ids = list(self.repository.weave_store)
159
 
            n_weaves = len(weave_ids)
 
159
            n_weaves = len(weave_ids) + 1
160
160
        self.progress.update('checking weave', 0, n_weaves)
161
161
        self.inventory_weave.check(progress_bar=self.progress)
162
162
        for i, weave_id in enumerate(weave_ids):