/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 bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2008-05-27 08:12:28 UTC
  • mfrom: (3453 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3455.
  • Revision ID: mbp@sourcefrog.net-20080527081228-2ft0nnz7edsz1jfa
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
    # This asks for all mainline revisions, which means we only have to spider
523
523
    # sideways, rather than depth history. That said, its still size-of-history
524
524
    # and should be addressed.
 
525
    # mainline_revisions always includes an extra revision at the beginning, so
 
526
    # don't request it.
525
527
    parent_map = dict(((key, value) for key, value in
526
 
        graph.iter_ancestry(mainline_revs) if value is not None))
 
528
        graph.iter_ancestry(mainline_revs[1:]) if value is not None))
527
529
    # filter out ghosts; merge_sort errors on ghosts.
528
530
    rev_graph = _strip_NULL_ghosts(parent_map)
529
531
    merge_sorted_revisions = merge_sort(
554
556
        if val[2] == _depth:
555
557
            zd_revisions.append([val])
556
558
        else:
557
 
            assert val[2] > _depth
558
559
            zd_revisions[-1].append(val)
559
560
    for revisions in zd_revisions:
560
561
        if len(revisions) > 1: