~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to heads.py

  • Committer: Aaron Bentley
  • Date: 2008-05-12 04:14:21 UTC
  • Revision ID: aaron@aaronbentley.com-20080512041421-hunspdyev3rxqx7u
Avoid using deprecated interface for heads

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                return 3
70
70
        repo.lock_read()
71
71
        try:
72
 
            g = repo.get_revision_graph()
73
 
            possible_heads = set(g.keys())
 
72
            possible_heads = set(repo.all_revision_ids())
 
73
            g = repo.get_graph().get_parent_map(possible_heads)
74
74
            not_heads = set()
75
75
            for parents in g.values():
76
76
                not_heads.update(set(parents))