~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Aaron Bentley
  • Date: 2005-11-17 05:14:54 UTC
  • mto: (1185.65.14 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051117051454-e9ac1dd13766b978
Moved get_ancestry to RevisionStorage

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    def __init__(self, branch):
44
44
        self.branch = branch
 
45
        self.storage = branch.storage
45
46
        self.checked_text_cnt = 0
46
47
        self.checked_rev_cnt = 0
47
48
        self.ghosts = []
59
60
            if not len(self.history):
60
61
                # nothing to see here
61
62
                return
62
 
            self.planned_revisions = self.branch.get_ancestry(self.history[-1])
 
63
            last_revision = self.history[-1]
 
64
            self.planned_revisions = self.storage.get_ancestry(last_revision)
63
65
            self.planned_revisions.remove(None)
64
66
            revno = 0
65
67
    
145
147
                    self.missing_parent_links[parent] = missing_links
146
148
                    # list based so slow, TODO have a planned_revisions list and set.
147
149
                    if self.branch.has_revision(parent):
148
 
                        missing_ancestry = self.branch.get_ancestry(parent)
 
150
                        missing_ancestry = self.storage.get_ancestry(parent)
149
151
                        for missing in missing_ancestry:
150
152
                            if (missing is not None 
151
153
                                and missing not in self.planned_revisions):