move list_unreleased_changes.sh to the releases repo
Change-Id: I138268eef969c6b2a6c50e6a203713a7a9486b12 Depends-On: Ifab8585a3707927d224ee223a551167cced05261 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
224ca14f26
commit
4bd9f7f578
24
README.rst
24
README.rst
|
@ -226,30 +226,6 @@ is useful for examining the list of unreleased changes in a project
|
|||
to decide if a release is warranted and to pick a version number.
|
||||
|
||||
|
||||
list_unreleased_changes.sh
|
||||
--------------------------
|
||||
|
||||
Given a branch and one or more repositories, produce a list of the
|
||||
changes in those repositories since their last tag on that
|
||||
branch. This is useful for deciding if a project needs to prepare a
|
||||
release, and for predicting what the next release version should be by
|
||||
looking at the commit logs.
|
||||
|
||||
::
|
||||
|
||||
./list_unreleased_changes.sh master openstack/oslo.config
|
||||
|
||||
Print the list of changes in ``openstack/oslo.config`` along the
|
||||
master branch.
|
||||
|
||||
::
|
||||
|
||||
./list_unreleased_changes.sh stable/kilo $(list-deliverables --repos --team Oslo)
|
||||
|
||||
Print the list of changes in the ``stable/kilo`` branch of all Oslo
|
||||
libraries.
|
||||
|
||||
|
||||
list_oslo_unreleased_changes.sh
|
||||
-------------------------------
|
||||
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# Provide a list of the unreleased changes in the given repositories
|
||||
|
||||
if [[ $# -lt 2 ]]; then
|
||||
echo "Usage: $(basename $0) <branch> <repo> [<repo>...]"
|
||||
echo "repo should be e.g. openstack/glance"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
branch="$1"
|
||||
shift
|
||||
repos="$@"
|
||||
|
||||
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $TOOLSDIR/functions
|
||||
|
||||
if [[ -z "$VIRTUAL_ENV" ]]; then
|
||||
if [[ ! -d .tox/venv ]]; then
|
||||
tox -e venv --notest
|
||||
fi
|
||||
source ./.tox/venv/bin/activate
|
||||
fi
|
||||
|
||||
# Make sure no pager is configured so the output is not blocked
|
||||
export PAGER=
|
||||
|
||||
setup_temp_space 'list-unreleased'
|
||||
|
||||
function list_changes {
|
||||
title "Unreleased changes in $repo"
|
||||
clone_repo $repo $branch
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
cd $repo
|
||||
prev_tag=$(get_last_tag)
|
||||
if [ -z "$prev_tag" ]; then
|
||||
echo "$repo has not yet been released"
|
||||
else
|
||||
echo
|
||||
local end_sha=$(git log -n 1 --pretty=tformat:%h)
|
||||
release-notes \
|
||||
--show-dates \
|
||||
--changes-only \
|
||||
. $(basename $repo) $prev_tag $end_sha
|
||||
fi
|
||||
}
|
||||
|
||||
# Show the unreleased changes for each repository.
|
||||
for repo in $repos; do
|
||||
cd $MYTMPDIR
|
||||
echo
|
||||
list_changes "$repo"
|
||||
done
|
Loading…
Reference in New Issue