From c01d0ec692352014d95b9909ce99c362674cfe8a Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Dec 07 2010 10:51:22 +0000 Subject: Update cli_getRepoStatus.sh: - When we need to refere to repository or working copy entries, don't use the FILE variable name to store the value. Instead, use the LOCATION variable name. LOCATION variable name, in such cases, is mor appropriate since repository entry can be a file, a directory or an URL. FILE name is ok for file and directories both not to describe URLs. So, in the sake of better describing what we are storing in the variable, the LOCATION variable name is used. --- diff --git a/Scripts/Bash/Functions/cli_getRepoStatus.sh b/Scripts/Bash/Functions/cli_getRepoStatus.sh index 330b4d8..a98d31a 100755 --- a/Scripts/Bash/Functions/cli_getRepoStatus.sh +++ b/Scripts/Bash/Functions/cli_getRepoStatus.sh @@ -28,7 +28,7 @@ function cli_getRepoStatus { - local FILE="$1" + local LOCATION="$1" local STATUS='' # Define regular expression pattern to retrive first column, @@ -39,11 +39,11 @@ function cli_getRepoStatus { # Verify the file used as source to retrive its status # information. We only use regular files or directories inside the # working copy. - cli_checkFiles "$FILE" 'fd' + cli_checkFiles "$LOCATION" 'fd' # Use subversion `status' command to retrive the first character # in the output. - STATUS="$(svn status "$FILE" --quiet | sed -r "s/${PATTER}/\1/")" + STATUS="$(svn status "$LOCATION" --quiet | sed -r "s/${PATTER}/\1/")" # Sanitate status output. if [[ "$STATUS" == '' ]];then