def get_merged_branches(repo_key, branch_name): # NOTE: This endpoint is a RestfulGit extension repo = get_repo(repo_key) branch = _get_branch(repo, branch_name) other_branches = ( repo.lookup_branch(other_branch_name) for other_branch_name in repo.listall_branches() if other_branch_name != branch_name ) merged_branches = (other_branch for other_branch in other_branches if _is_merged(repo, branch, other_branch)) return [convert_branch_summary(repo_key, merged_branch) for merged_branch in merged_branches]
def get_merged_branches(repo_key, branch_name): # NOTE: This endpoint is a RestfulGit extension repo = get_repo(repo_key) branch = _get_branch(repo, branch_name) other_branches = ( repo.lookup_branch(other_branch_name) for other_branch_name in repo.listall_branches() if other_branch_name != branch_name ) merged_branches = (other_branch for other_branch in other_branches if _is_merged(repo, branch, other_branch)) return [convert_branch_summary(repo_key, merged_branch) for merged_branch in merged_branches]
def get_branches(repo_key): repo = get_repo(repo_key) branches = (repo.lookup_branch(branch_name) for branch_name in repo.listall_branches()) return [convert_branch_summary(repo_key, branch) for branch in branches]
def get_branches(repo_key): repo = get_repo(repo_key) branches = (repo.lookup_branch(branch_name) for branch_name in repo.listall_branches()) return [convert_branch_summary(repo_key, branch) for branch in branches]