~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Robert Collins
  • Date: 2006-03-03 03:09:07 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060303030907-6af33664f8791e78
Move responsibility for repository.has_revision into RevisionStore

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)
 
83
        self.planned_revisions = set(repository.all_revision_ids())
 
84
        self.progress.clear()
93
85
        inventoried = set(self.inventory_weave.names())
94
86
        awol = self.planned_revisions - inventoried
95
87
        if len(awol) > 0: