/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 13:10:09 UTC
  • mto: (0.140.51 trunk)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: jelmer@samba.org-20120823131009-r7bw5y51y2wj2ohf
Remove another use of get_ancestry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    ui,
29
29
    workingtree,
30
30
    )
 
31
from bzrlib.revision import NULL_REVISION
31
32
from bzrlib.plugins.stats.classify import classify_delta
32
33
 
33
34
from itertools import izip
168
169
    a_repo.lock_read()
169
170
    try:
170
171
        trace.note('getting ancestry')
171
 
        ancestry = a_repo.get_ancestry(revision)[1:]
 
172
        graph = a_repo.get_graph()
 
173
        ancestry = [
 
174
            r for (r, ps) in graph.iter_ancestry([revision])
 
175
            if ps is not None and r != NULL_REVISION]
172
176
        revs, canonical_committer = get_revisions_and_committers(a_repo, ancestry)
173
177
    finally:
174
178
        a_repo.unlock()