@task
def finish(branch_name=None, remote='origin'):
    prompt = ui.warning('This will delete your local and remote topic branches. '
                        'Make sure your pull request has been merged or closed. '
                        'Are you sure you want to finish this branch?')
    if not confirm(prompt):
        abort('Branch deletion canceled.')

    print ui.success('Branch %s successfully cleaned up.' % git.cleanup(branch_name,
                                                                   remote))
Delete the current feature branch.
dataset/ETHPy150Open bmun/huxley/fabfile/__init__.py/finish