include version info for all branches
Show the list of branches with their version info, so we can avoid releasing a version from an older stable branch that would interfere with the use of master. Change-Id: Ic6931ce11bb9032015158f6f890000666602d049 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -67,10 +67,12 @@ def git_branch_contains(workdir, repo, title, commit):
|
||||
out = subprocess.check_output(cmd, cwd=os.path.join(workdir, repo))
|
||||
print(out + '\n')
|
||||
print('\nAll branches:')
|
||||
subprocess.check_call(
|
||||
['git', 'branch', '-a'],
|
||||
cwd=os.path.join(workdir, repo),
|
||||
)
|
||||
for branch in gitutils.get_branches(workdir, repo):
|
||||
print('{:<30}'.format(branch), end=' ')
|
||||
subprocess.call(
|
||||
['git', 'describe', branch],
|
||||
cwd=os.path.join(workdir, repo),
|
||||
)
|
||||
return [o.strip() for o in out.splitlines()]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user