From a67b85ea5a79c60f2e5199d425d989a4206ab498 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 10 2012 14:20:23 +0000 Subject: Update `Functions/Svn/svn_syncroRepoChanges.sh' file. --- diff --git a/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh b/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh index bd060a5..614c4c3 100755 --- a/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh +++ b/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh @@ -27,18 +27,26 @@ function svn_syncroRepoChanges { - # Verify whether the action value is under version control or not. - # In case it is under version control continue with the script - # execution. Otherwise, if it is not under version control, finish - # script execution immediately with an error message. - if [[ $(svn_isVersioned ${ACTIONVAL}) != 0 ]];then - cli_printMessage "${ACTIONVAL} `gettext "isn't under version control."`" --as-error-line - fi - - # Bring changes from the repository into the working copy. - svn_updateRepoChanges - - # Check changes in the working copy. - svn_commitRepoChanges + local LOCATION='' + local LOCATIONS="${@}" + + for LOCATION in $LOCATIONS;do + + # Verify whether the location is valid or not. + LOCATION=$(cli_checkRepoDirSource ${LOCATION}) + + # Verify whether location is under version control or not. In + # case it is under version control continue with the script + # execution. Otherwise, if it is not under version control, + # finish script execution immediately with an error message. + cli_checkFiles ${LOCATION} --is-versioned + + # Bring changes from the repository into the working copy. + svn_updateRepoChanges ${LOCATION} + + # Check changes in the working copy. + svn_commitRepoChanges ${LOCATION} + + done }