Now generate appspot description from git log.

This commit is contained in:
Alain Jobart 2013-08-20 10:53:16 -07:00
Родитель 01694baf6b
Коммит 574b8b6c75
1 изменённых файлов: 21 добавлений и 3 удалений

Просмотреть файл

@ -14,11 +14,29 @@ fi
# if user specified --rev, we're not adding the default one # if user specified --rev, we're not adding the default one
rev="--rev master" rev="--rev master"
rev_param="master"
rev_param_is_next=false
for i in $* ; do for i in $* ; do
if [ "$i" == "--rev" ]; then if [ "$rev_param_is_next" == "true" ]; then
rev="" rev_param=$i
rev_param_is_next=false
else
if [ "$i" == "--rev" ]; then
rev=""
rev_param_is_next=true
fi
fi fi
done done
# Build the message automatically from the git log.
# the rev_param will be just the original branch / change, or a set of
# two changes separated by ':'. For git log, we'll need both separated
# by '..'
if ! ( echo $rev_param | grep : ) ; then
rev_param=${rev_param}:
fi
git_log=`echo $rev_param | sed -n 's/:/../p'`
git log $git_log > /tmp/createcl.msg
echo "Visit https://accounts.google.com/b/0/IssuedAuthSubTokens to generate an app specific password." echo "Visit https://accounts.google.com/b/0/IssuedAuthSubTokens to generate an app specific password."
upload.py $rev -y -s codereview.appspot.com -e ${USER}@google.com --cc yt-vt-issues@google.com --send_mail $* echo upload.py $rev -y -s codereview.appspot.com -e ${USER}@google.com --cc yt-vt-issues@google.com --send_mail -F /tmp/createcl.msg $*