Avoid code reviews for minor translation changes.

If the only changes are the creation date or comments, don't send a
review. Resolves bug 1095183.

Change-Id: Idbc3f313d32b60563f4eff5fd97784a25fb8c428
Reviewed-on: https://review.openstack.org/18803
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Michael Still 2013-01-02 14:20:21 +11:00 committed by Jenkins
parent e61a7e90c8
commit f2c16538bf

View File

@ -43,7 +43,9 @@ fi
# Add all changed files to git
git add $PROJECT/locale/*
if [ ! `git diff-index --quiet HEAD --` ]
# Don't send a review if the only things which have changed are the creation
# date or comments.
if [ `git diff --cached | egrep -v "(POT-Creation-Date|^[\+\-]#|^\+{3}|^\-{3})" | egrep -c "^[\-\+]"` -gt 0 ]
then
# Commit and review
git commit -F- <<EOF