/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-04 15:29:17 UTC
  • mfrom: (2961 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071104152917-nrsumxpk3dikso2c
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
        :returns: an iterator yielding tuples of (revison-id, parents-in-index,
277
277
            parents-in-revision).
278
278
        """
 
279
        assert self.is_locked()
279
280
        vf = self._get_revision_vf()
280
 
        index_versions = vf.versions()
281
 
        for index_version in index_versions:
282
 
            parents_according_to_index = vf._index.get_parents_with_ghosts(
283
 
                index_version)
284
 
            revision = self._revision_store.get_revision(index_version,
285
 
                self.get_transaction())
286
 
            parents_according_to_revision = revision.parent_ids
 
281
        for index_version in vf.versions():
 
282
            parents_according_to_index = tuple(vf.get_parents_with_ghosts(
 
283
                index_version))
 
284
            revision = self.get_revision(index_version)
 
285
            parents_according_to_revision = tuple(revision.parent_ids)
287
286
            if parents_according_to_index != parents_according_to_revision:
288
287
                yield (index_version, parents_according_to_index,
289
288
                    parents_according_to_revision)
324
323
    # Set this attribute in derived clases to control the _serializer that the
325
324
    # repository objects will have passed to their constructor.
326
325
    _serializer = xml5.serializer_v5
 
326
    # Knit based repositories handle ghosts reasonably well.
 
327
    supports_ghosts = True
327
328
 
328
329
    def _get_control_store(self, repo_transport, control_files):
329
330
        """Return the control store for this repository."""