Only verbosely output ``Updating the repository...'' when actually attempting to upate the repository.

This commit is contained in:
Nathan Phillip Brink 2010-10-30 14:17:08 -04:00
parent 5a693ebacf
commit ce70c2dd65

View File

@ -263,8 +263,10 @@ vcs_update() {
# Unlike svn, DVCSes don't push the changes to their origins immediately. # Unlike svn, DVCSes don't push the changes to their origins immediately.
# That's why we don't force update to it right here. # That's why we don't force update to it right here.
if [ ${SC_VCS} = svn ]; then if [ ${SC_VCS} = svn ]; then
sayv "Updating the repository..."
svn up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." svn up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway."
elif [ ${SC_VCS} = cvs ]; then elif [ ${SC_VCS} = cvs ]; then
sayv "Updating the repository..."
cvs up -d -P -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." cvs up -d -P -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway."
fi fi
} }
@ -400,7 +402,6 @@ main() {
check_for_changes || die 'No changes found to commit.' check_for_changes || die 'No changes found to commit.'
if [ -z "${noupdate}" ]; then if [ -z "${noupdate}" ]; then
sayv "Updating the repository..."
vcs_update vcs_update
fi fi
@ -516,7 +517,6 @@ main() {
confirm confirm
if [ -z "${noupdate}" ]; then if [ -z "${noupdate}" ]; then
sayv "Updating the repository..."
vcs_update ${SC_CHANGE_LIST} vcs_update ${SC_CHANGE_LIST}
fi fi