From ce70c2dd65d91f4a83bf49f0cd8264de39565326 Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Sat, 30 Oct 2010 14:17:08 -0400 Subject: [PATCH] Only verbosely output ``Updating the repository...'' when actually attempting to upate the repository. --- sunrise-commit.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunrise-commit.in b/sunrise-commit.in index fe65848..b99637e 100755 --- a/sunrise-commit.in +++ b/sunrise-commit.in @@ -263,8 +263,10 @@ vcs_update() { # Unlike svn, DVCSes don't push the changes to their origins immediately. # That's why we don't force update to it right here. if [ ${SC_VCS} = svn ]; then + sayv "Updating the repository..." svn up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." elif [ ${SC_VCS} = cvs ]; then + sayv "Updating the repository..." cvs up -d -P -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." fi } @@ -400,7 +402,6 @@ main() { check_for_changes || die 'No changes found to commit.' if [ -z "${noupdate}" ]; then - sayv "Updating the repository..." vcs_update fi @@ -516,7 +517,6 @@ main() { confirm if [ -z "${noupdate}" ]; then - sayv "Updating the repository..." vcs_update ${SC_CHANGE_LIST} fi