~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

Merge in knit repository use of knits - still not a stable format, but can be experimented with.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
    def plan_revisions(self):
82
82
        repository = self.branch.repository
83
 
        if not repository.revision_store.listable():
84
 
            self.planned_revisions = repository.get_ancestry(self.history[-1])
85
 
            self.planned_revisions.remove(None)
86
 
            # FIXME progress bars should support this more nicely.
87
 
            self.progress.clear()
88
 
            print ("Checking reachable history -"
89
 
                   " for a complete check use a local branch.")
90
 
            return
91
 
        
92
 
        self.planned_revisions = set(repository.revision_store)
93
 
        inventoried = set(self.inventory_weave.names())
 
83
        self.planned_revisions = set(repository.all_revision_ids())
 
84
        self.progress.clear()
 
85
        inventoried = set(self.inventory_weave.versions())
94
86
        awol = self.planned_revisions - inventoried
95
87
        if len(awol) > 0:
96
88
            raise BzrCheckError('Stored revisions missing from inventory'