/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: 2007-06-27 01:43:03 UTC
  • mfrom: (2554 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2555.
  • Revision ID: mbp@sourcefrog.net-20070627014303-z4ichnqm91hhm4ww
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    """
121
121
    if base_revision_id is NULL_REVISION:
122
122
        base_revision_id = None
123
 
    base_ancestry = set(repository.get_ancestry(base_revision_id))
124
 
    revision_ids = [r for r in repository.get_ancestry(revision_id) if r
125
 
                    not in base_ancestry]
126
 
    revision_ids = list(reversed(revision_ids))
 
123
    revision_ids = set(repository.get_ancestry(revision_id, topo_sorted=False))
 
124
    revision_ids.difference_update(repository.get_ancestry(base_revision_id,
 
125
                                   topo_sorted=False))
 
126
    revision_ids = list(repository.get_graph().iter_topo_order(revision_ids))
 
127
    revision_ids.reverse()
127
128
    write(repository, revision_ids, out, format,
128
129
          forced_bases = {revision_id:base_revision_id})
129
130
    return revision_ids