/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/linegraph.py

  • Committer: Gary van der Merwe
  • Date: 2007-12-20 23:43:57 UTC
  • mto: This revision was merged to the branch mainline in revision 423.
  • Revision ID: garyvdm@garyvdm-desktop-20071220234357-kfefk2638n1ylfcx
Make viz not throw errors when there are 0 commits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    for revid in graph_parents.iterkeys():
47
47
        graph_children[revid] = []
48
48
 
49
 
    merge_sorted_revisions = merge_sort(
50
 
        graph_parents,
51
 
        start,
52
 
        generate_revno=True)
 
49
    if len(graph_parents)>0:
 
50
        merge_sorted_revisions = merge_sort(
 
51
            graph_parents,
 
52
            start,
 
53
            generate_revno=True)
 
54
    else:
 
55
        merge_sorted_revisions = ()
53
56
    
54
57
    revid_index = {}
55
58
    revno_index = {}