Blame Scripts/Bash/Functions/Commons/synchronizeRepoChanges.sh

e96f35
#!/bin/bash
e96f35
#
a6feb3
# cli_synchronizeRepoChanges.sh -- This function standardizes the way
ca6c16
# changes are synchronized between the working copy and the central
ca6c16
# repository. This function is an interface for the `Svn'
ca6c16
# functionality of centos-art.sh script.
e96f35
#
e96f35
# Copyright (C) 2009, 2010, 2011, 2012 The CentOS Project
e96f35
#
e96f35
# This program is free software; you can redistribute it and/or modify
e96f35
# it under the terms of the GNU General Public License as published by
e96f35
# the Free Software Foundation; either version 2 of the License, or (at
e96f35
# your option) any later version.
e96f35
#
e96f35
# This program is distributed in the hope that it will be useful, but
e96f35
# WITHOUT ANY WARRANTY; without even the implied warranty of
e96f35
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e96f35
# General Public License for more details.
e96f35
#
e96f35
# You should have received a copy of the GNU General Public License
e96f35
# along with this program; if not, write to the Free Software
e96f35
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
e96f35
#
e96f35
# ----------------------------------------------------------------------
e96f35
# $Id$
e96f35
# ----------------------------------------------------------------------
e96f35
a6feb3
function cli_synchronizeRepoChanges {
e96f35
e96f35
    if [[ ! $FLAG_COMMIT_CHANGES == 'true' ]];then
e96f35
        return
e96f35
    fi
e96f35
    
ca6c16
    # Verify existence of locations passed to this function.
ca6c16
    cli_checkFiles -e $@
e96f35
ca6c16
    # Synchronize changes.
ca6c16
    ${CLI_NAME} svn --sync $@
e96f35
e96f35
}