/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:07:53 UTC
  • mto: (0.140.51 trunk)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: jelmer@samba.org-20120823130753-df5jqt55umb6501d
Remove use of .get_ancestry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
368
368
           }
369
369
    repository.lock_read()
370
370
    try:
371
 
        ancestry = filter(lambda x: x is not None, repository.get_ancestry(revid))
 
371
        graph = repository.get_graph()
 
372
        ancestry = [r for (r, ps) in graph.iter_ancestry([revid]) if ps is not None]
372
373
        revs = repository.get_revisions(ancestry)
373
374
        pb = ui.ui_factory.nested_progress_bar()
374
375
        try: