~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-06 09:22:00 UTC
  • mfrom: (6008 +trunk)
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110706092200-7iai2mwzc0sqdsvf
MergingĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
        forced_bases = {revision_id:base_revision_id}
160
160
        if base_revision_id is NULL_REVISION:
161
161
            base_revision_id = None
162
 
        revision_ids = set(repository.get_ancestry(revision_id,
163
 
                           topo_sorted=False))
164
 
        revision_ids.difference_update(repository.get_ancestry(
165
 
            base_revision_id, topo_sorted=False))
 
162
        graph = repository.get_graph()
 
163
        revision_ids = graph.find_unique_ancestors(revision_id,
 
164
            [base_revision_id])
166
165
        revision_ids = list(repository.get_graph().iter_topo_order(
167
166
            revision_ids))
168
167
        revision_ids.reverse()