/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/bundle/serializer/__init__.py

  • Committer: Martin Pool
  • Date: 2011-06-28 13:55:39 UTC
  • mfrom: (5995 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5996.
  • Revision ID: mbp@canonical.com-20110628135539-6541falwx39fl46i
merge news

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()