Lines Matching refs:upstream
48 def branch_has_commit(upstream: str, branch: str, commit: str) -> bool:
53 commit, upstream + '/' + branch],
59 def branch_has_backport_of_commit(upstream: str, branch: str, commit: str) -> str:
65 branch + '-branchpoint..' + upstream + '/' + branch,
92 (upstream, _) = branch.split('/')
95 if line.startswith(upstream + '\t'):
99 raise argparse.ArgumentTypeError('Invalid remote: ' + upstream)
128 (upstream, branch) = args.branch.split('/')
130 if branch_has_commit(upstream, branch, args.commit):
134 backport = branch_has_backport_of_commit(upstream, branch, args.commit)