/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 branchview/linegraph.py

  • Committer: Aaron Bentley
  • Date: 2008-04-28 21:27:02 UTC
  • mto: This revision was merged to the branch mainline in revision 472.
  • Revision ID: aaron@aaronbentley.com-20080428212702-vmk87l9w5ln0bxwp
Turn my_graph_children into plain graph_children

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    graph = repository.get_graph()
47
47
    graph_parents = {}
48
48
    ghosts = set()
49
 
    my_graph_children = {}
 
49
    graph_children = {}
50
50
    graph_children = {}
51
51
    for (revid, parent_revids) in graph.iter_ancestry(start_revs):
52
52
        if parent_revids is None:
57
57
        else:
58
58
            graph_parents[revid] = parent_revids
59
59
        for parent in parent_revids:
60
 
            my_graph_children.setdefault(parent, []).append(revid)
 
60
            graph_children.setdefault(parent, []).append(revid)
61
61
        graph_children[revid] = []
62
62
    for ghost in ghosts:
63
 
        for ghost_child in my_graph_children[ghost]:
64
 
            graph_parents [ghost_child] = [p for p in
65
 
            graph_parents [ghost_child] if p not in ghosts]
 
63
        for ghost_child in graph_children[ghost]:
 
64
            graph_parents[ghost_child] = [p for p in graph_parents[ghost_child]
 
65
                                          if p not in ghosts]
66
66
    graph_parents["top:"] = start_revs
67
67
 
68
68
    if len(graph_parents)>0:
104
104
        revid_index[revid] = rev_index
105
105
        
106
106
        parents = graph_parents[revid]
107
 
        for parent_revid in parents:
108
 
            graph_children[parent_revid].append(revid)
109
 
        
110
107
        linegraph.append([revid,
111
108
                          None,
112
109
                          [],