~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/history2weaves.py

  • Committer: Martin Pool
  • Date: 2005-09-19 08:02:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050919080241-d9460223db8f7d90
- rename to Revision.parent_ids to avoid confusion with old usage
  where Revision.parents held objects rather than strings\t

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        else:
152
152
            rev_xml = self.branch.revision_store[rev_id].read()
153
153
            rev = serializer_v4.read_revision_from_string(rev_xml)
154
 
            for parent_id in rev.parents:
 
154
            for parent_id in rev.parent_ids:
155
155
                self.total_revs += 1
156
156
                self.to_read.append(parent_id)
157
157
            self.revisions[rev_id] = rev
176
176
            # are all done
177
177
            for rev_id in sorted(list(todo)):
178
178
                rev = self.revisions[rev_id]
179
 
                parent_ids = set(rev.parents)
 
179
                parent_ids = set(rev.parent_ids)
180
180
                if parent_ids.issubset(done):
181
181
                    # can take this one now
182
182
                    o.append(rev_id)