diff --git a/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh b/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh index cb79352..bd060a5 100755 --- a/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh +++ b/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh @@ -1,8 +1,9 @@ #!/bin/bash # # svn_syncroRepoChanges.sh -- This function syncronizes both central -# repository and working copy performing a subversion update command -# first and a subversion commit command later. +# repository and working copy directory structures by performing a +# subversion update command first and a subversion commit command +# later. # # Copyright (C) 2009, 2010, 2011, 2012 The CentOS Project # @@ -26,10 +27,12 @@ function svn_syncroRepoChanges { - # Verify the location is a working copy. Whe it is not a working - # copy don't do any subversion stuff in it. - if [[ $(svn_isVersioned) != 0 ]];then - return + # 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.