~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/history.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2008-03-06 04:54:39 UTC
  • mfrom: (148.1.3 changelog-order-aaaargh)
  • Revision ID: launchpad@pqm.canonical.com-20080306045439-qe3j5ryuhb7bmqr8
[r=jamesh] fix the order of the changelog view when the revision cache is not used

Show diffs side-by-side

added added

removed removed

Lines of Context:
656
656
        revid_list = filter(lambda revid: not bzrlib.revision.is_null(revid),
657
657
                            revid_list)
658
658
        repo = self._branch.repository
659
 
        rev_list = repo.get_revisions(
660
 
            repo.get_graph().get_parent_map(revid_list))
 
659
        parent_map = repo.get_graph().get_parent_map(revid_list)
 
660
        # We need to return the answer in the same order as the input,
 
661
        # less any ghosts.
 
662
        present_revids = [revid for revid in revid_list
 
663
                          if revid in parent_map]
 
664
        rev_list = repo.get_revisions(present_revids)
661
665
 
662
666
        return [self._change_from_revision(rev) for rev in rev_list]
663
667