/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 cmds.py

  • Committer: Jelmer Vernooij
  • Date: 2012-08-23 15:00:49 UTC
  • mto: (0.140.51 trunk)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: jelmer@samba.org-20120823150049-yxqcu38vgc1o4u1t
Avoid use of get_ancestry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
    pb = ui.ui_factory.nested_progress_bar()
190
190
    a_repo.lock_read()
191
191
    try:
192
 
        trace.note('getting ancestry 1')
193
 
        start_ancestry = set(a_repo.get_ancestry(start_rev))
194
 
        trace.note('getting ancestry 2')
195
 
        ancestry = a_repo.get_ancestry(end_rev)[1:]
196
 
        ancestry = [rev for rev in ancestry if rev not in start_ancestry]
 
192
        graph = a_repo.get_graph()
 
193
        trace.note('getting ancestry diff')
 
194
        ancestry = graph.find_difference(start_rev, end_rev)[1]
197
195
        revs, canonical_committer = get_revisions_and_committers(a_repo, ancestry)
198
196
    finally:
199
197
        a_repo.unlock()