Merge "Check diff against existing req proposal changes."

This commit is contained in:
Jenkins 2013-11-24 17:57:04 +00:00 committed by Gerrit Code Review
commit 14ba48279a

View File

@ -23,6 +23,7 @@ git config gitreview.username $USERNAME
for PROJECT in $(cat projects.txt); do for PROJECT in $(cat projects.txt); do
change_id=""
# See if there is an open change in the openstack/requirements topic # See if there is an open change in the openstack/requirements topic
# If so, get the change id for the existing change for use in the # If so, get the change id for the existing change for use in the
# commit msg. # commit msg.
@ -47,15 +48,20 @@ EOF
COMMIT_MSG=$INITIAL_COMMIT_MSG COMMIT_MSG=$INITIAL_COMMIT_MSG
fi fi
rm -rf $(basename $PROJECT)
git clone --depth=1 ssh://$USERNAME@review.openstack.org:29418/$PROJECT.git
PROJECT_DIR=$(basename $PROJECT) PROJECT_DIR=$(basename $PROJECT)
python update.py $PROJECT_DIR rm -rf $PROJECT_DIR
git clone --depth=1 ssh://$USERNAME@review.openstack.org:29418/$PROJECT.git
pushd $PROJECT_DIR pushd $PROJECT_DIR
git review -s git review -s
if [ -n "$change_id" ] ; then
git review -d $change_id
fi
popd
python update.py $PROJECT_DIR
pushd $PROJECT_DIR
if ! git diff --quiet ; then if ! git diff --quiet ; then
# Commit and review # Commit and review
git commit -a -F- <<EOF git commit -a -F- <<EOF