diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-07-08 12:39:20 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-07-08 12:39:20 +0000 |
commit | b1943d5b93cf1c879b83bbf2e5cb054163eff5e1 (patch) | |
tree | adc79d41889fe0bf3b68ec041597f662a6bbfa59 /scripts | |
parent | scripts/review: new, much improved review script (diff) | |
download | sunrise-b1943d5b93cf1c879b83bbf2e5cb054163eff5e1.tar.gz sunrise-b1943d5b93cf1c879b83bbf2e5cb054163eff5e1.tar.bz2 sunrise-b1943d5b93cf1c879b83bbf2e5cb054163eff5e1.zip |
scripts/review: some improvements
svn path=/sunrise/; revision=549
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/review b/scripts/review index 11829ded5..133c78a94 100755 --- a/scripts/review +++ b/scripts/review @@ -16,11 +16,6 @@ opt_noupdate=0 opt_quiet=0 opt_verbose=0 -if ! [ -e sunrise ] || ! [ -e reviewed ]; then - eerror "You need to have sunrise and reviewed subdirs" - exit -fi - svn_up() { if [[ "$opt_noupdate" == "0" ]] ; then ebegin "Updating working copy to latest version from repository" @@ -112,6 +107,16 @@ fi svn_up || exit $? +if ! [ -e sunrise ] || ! [ -e reviewed ]; then + eerror "You need to have sunrise and reviewed subdirs" + exit +fi + +if svn st | grep -q sunrise/ 2>/dev/null; then + eerror "Please commit your local changes to sunrise before running this script" + exit +fi + sunrise_revision=$* reviewed_revision=$(svn log reviewed 2>/dev/null | grep "Reviewed up to revision " -m 1 | sed "s:Reviewed up to revision ::") |