~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jelmer Vernooij
  • Date: 2011-10-06 00:55:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6216.
  • Revision ID: jelmer@samba.org-20111006005552-6p7oe6117dbqfgh5
Remove more uses of Branch.revision_history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1785
1785
    @display_command
1786
1786
    def run(self, location="."):
1787
1787
        branch = Branch.open_containing(location)[0]
1788
 
        for revid in branch.revision_history():
 
1788
        graph = branch.repository.get_graph()
 
1789
        history = list(graph.iter_lefthand_ancestry(branch.last_revision(),
 
1790
            [_mod_revision.NULL_REVISION])
 
1791
        for revid in reversed(history):
1789
1792
            self.outf.write(revid)
1790
1793
            self.outf.write('\n')
1791
1794