releases/openstack_releases
Tony Breeds 6434830358 Always resolve branches to a SHA if a tag isn't available
The list changes output of I5485b7ea35be76d7c980e7b222b0c3320770493c
looks 'messy' as some branches do not resolve to a tag.  A shell based
example of what the current code does:

[tony@thor networking-bgpvpn]$ for branch in $(git branch -a | grep -v -- -\> | tr  '[*]' '[ ]') ; do printf "%-30s %s\n" $branch $(git describe --abbrev=0 $branch); done
master                         7.0.0.0rc1
fatal: No tags can describe '8ff78c308a004cdc948c804190d1178d7263781f'.
Try --always, or create some tags.
remotes/gerrit/backport/juno
fatal: No tags can describe '06aa314936eb9a43d358ed75b2e8fef2dadb59d6'.
Try --always, or create some tags.
remotes/gerrit/backport/kilo
remotes/gerrit/master          7.0.0.0rc1
remotes/gerrit/stable/newton   5.0.0
remotes/gerrit/stable/ocata    6.0.0
remotes/gerrit/stable/pike     7.0.0
fatal: No tags can describe '8ff78c308a004cdc948c804190d1178d7263781f'.
Try --always, or create some tags.
remotes/origin/backport/juno
fatal: No tags can describe '06aa314936eb9a43d358ed75b2e8fef2dadb59d6'.
Try --always, or create some tags.
remotes/origin/backport/kilo
remotes/origin/master          7.0.0.0rc1
remotes/origin/stable/newton   5.0.0
remotes/origin/stable/ocata    6.0.0
remotes/origin/stable/pike     7.0.0

Adding --always:
[tony@thor networking-bgpvpn]$ for branch in $(git branch -a | grep -v -- -\> | tr  '[*]' '[ ]') ; do printf "%-30s %s\n" $branch $(git describe --always --abbrev=0 $branch); done
master                         7.0.0.0rc1
remotes/gerrit/backport/juno   8ff78c308a004cdc948c804190d1178d7263781f
remotes/gerrit/backport/kilo   06aa314936eb9a43d358ed75b2e8fef2dadb59d6
remotes/gerrit/master          7.0.0.0rc1
remotes/gerrit/stable/newton   5.0.0
remotes/gerrit/stable/ocata    6.0.0
remotes/gerrit/stable/pike     7.0.0
remotes/origin/backport/juno   8ff78c308a004cdc948c804190d1178d7263781f
remotes/origin/backport/kilo   06aa314936eb9a43d358ed75b2e8fef2dadb59d6
remotes/origin/master          7.0.0.0rc1
remotes/origin/stable/newton   5.0.0
remotes/origin/stable/ocata    6.0.0
remotes/origin/stable/pike     7.0.0

Change-Id: Ic59797ea2c7e2278e8b25f45511009620e6f103a
2017-09-22 08:42:51 -04:00
..
cmds new-branch: Add check for branch name before adding 2017-09-12 13:55:51 -06:00
tests [Trivialfix]Fix typos in releases 2017-08-08 04:22:20 -07:00
__init__.py add list-deliverables command 2016-11-22 10:29:06 -05:00
defaults.py mark pike as released and ocata as maintained 2017-08-28 12:00:47 -04:00
deliverable.py modernize propose-final-releases command 2017-08-28 12:00:06 -04:00
flags.py add a "retired" flag for repositories 2016-06-09 14:17:51 -04:00
gitutils.py Always resolve branches to a SHA if a tag isn't available 2017-09-22 08:42:51 -04:00
governance.py use yamlutils.loads() everywhere instead of yaml.safe_load() 2017-08-01 17:50:37 -04:00
links.py teach missing-releases to look for artifacts as well as tags 2016-12-16 16:05:58 -05:00
npmutils.py handle mixed-language repos packaged as python 2017-05-24 13:10:01 -04:00
project_config.py use yamlutils.loads() everywhere instead of yaml.safe_load() 2017-08-01 17:50:37 -04:00
puppetutils.py handle mixed-language repos packaged as python 2017-05-24 13:10:01 -04:00
pythonutils.py make validate work with python 3 2017-03-03 15:00:04 -05:00
schema.yaml Update schema.yaml to catch more typos 2017-09-01 11:11:04 -07:00
sphinxext.py default deliverable type to other in sort 2017-03-03 15:43:25 -05:00
versionutils.py Create stable/ocata branch for openstack-manuals 2017-03-24 11:56:49 +02:00
wiki.py fix wiki module for python3 2017-03-03 15:00:04 -05:00
yamlutils.py do not let yamlutils emit alias references 2017-08-01 16:51:03 -04:00