Skip to content

Instantly share code, notes, and snippets.

@wangmuy
Last active August 30, 2016 02:16
Show Gist options
  • Save wangmuy/9bf52028e50fc9974a95f8e97bb1c23c to your computer and use it in GitHub Desktop.
Save wangmuy/9bf52028e50fc9974a95f8e97bb1c23c to your computer and use it in GitHub Desktop.
svnsync repo properties
#!/bin/sh
source /etc/profile
[ -z "$DIR" ] && DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRC=http://192.168.1.100/svn
cd $DIR
repo=$1
rev=$2
echo repo=$repo
FILE=file://$DIR/$repo
[ $? -eq 0 ] && [ -d $repo ] && \
svnsync --non-interactive --trust-server-cert --source-username git --source-password gitpwd --no-auth-cache copy-revprops $FILE $rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment