~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-16 16:54:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3543.
  • Revision ID: john@arbash-meinel.com-20080716165406-3ctahm7c3fafi3qy
Review feedback from Ian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1504
1504
            if len(node_children) != 1:
1505
1505
                continue
1506
1506
            child_parents = result.get(node_children[0], None)
1507
 
            if child_parents is None:
1508
 
                import pdb; pdb.set_trace()
1509
1507
            if len(child_parents) != 1:
1510
1508
                # This is not its only parent
1511
1509
                continue
1512
 
            assert child_parents[0] == node
1513
1510
            # The child of this node only points at it, and the parent only has
1514
1511
            # this as a child. remove this node, and join the others together
1515
1512
            result[node_children[0]] = parents