From 153fa3570819db3f617f22299bd8239a67174596 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 16 2012 14:06:14 +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 640f429..cb79352 100755 --- a/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh +++ b/Scripts/Bash/Functions/Svn/svn_syncroRepoChanges.sh @@ -26,26 +26,16 @@ function svn_syncroRepoChanges { - # Verify don't commit changes flag. - if [[ $FLAG_DONT_COMMIT_CHANGES != 'false' ]];then + # 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 fi - # Define source location the subversion update action will take - # place on. If arguments are provided use them as srouce location. - # Otherwise use action value as default source location. - if [[ "$@" != '' ]];then - LOCATIONS="$@" - else - LOCATIONS="$ACTIONVAL" - fi - # Bring changes from the repository into the working copy. - cli_exportFunctions "Svn/svn_updateRepoChanges" - svn_updateRepoChanges "$LOCATIONS" + svn_updateRepoChanges # Check changes in the working copy. - cli_exportFunctions "Svn/svn_commitRepoChanges" - svn_commitRepoChanges "$LOCATIONS" + svn_commitRepoChanges }