Allow the user to specify a --rev to upload.py.

This commit is contained in:
Alain Jobart 2013-08-20 10:30:40 -07:00
Родитель 7a64d6d7b6
Коммит 01694baf6b
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -12,5 +12,13 @@ if [ "$(which upload.py)" == "" ]; then
_print_download
fi
# if user specified --rev, we're not adding the default one
rev="--rev master"
for i in $* ; do
if [ "$i" == "--rev" ]; then
rev=""
fi
done
echo "Visit https://accounts.google.com/b/0/IssuedAuthSubTokens to generate an app specific password."
upload.py --rev master -y -s codereview.appspot.com -e ${USER}@google.com --cc yt-vt-issues@google.com --send_mail $*
upload.py $rev -y -s codereview.appspot.com -e ${USER}@google.com --cc yt-vt-issues@google.com --send_mail $*