Switch to unified view

a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
...
...
505
                limit -= 1
505
                limit -= 1
506
            yield ci
506
            yield ci
507
            # remove this commit from its parents children and add any childless
507
            # remove this commit from its parents children and add any childless
508
            # parents to the 'ready set'
508
            # parents to the 'ready set'
509
            new_parent = None
509
            new_parent = None
510
            for oid in ci_parents[ci]:
510
            for oid in ci_parents.get(ci, []):
511
                children = ci_children[oid]
511
                children = ci_children[oid]
512
                children.discard(ci)
512
                children.discard(ci)
513
                if not children:
513
                if not children:
514
                    commits.add(oid)
514
                    commits.add(oid)
515
                    new_parent = oid
515
                    new_parent = oid