def traverse_dependents_preorder(branch, padding=''):
    dependents_to_process = tracked_to_dependents.get(branch, [])
    padding += '  '
    for dependent in dependents_to_process:
        print(('%s%s' % (padding, dependent)))
        dependents.append(dependent)
        traverse_dependents_preorder(dependent, padding)
def traverse_dependents_preorder(branch, padding=):
    dependents_to_process = tracked_to_dependents.get(branch, [])
    padding += '  '
    for dependent in dependents_to_process:
        print(('%s%s' % (padding, dependent)))
        dependents.append(dependent)
        traverse_dependents_preorder(dependent, padding)