Skip to content

Instantly share code, notes, and snippets.

@dubbs
Created February 3, 2012 16:13
Show Gist options
  • Save dubbs/1730900 to your computer and use it in GitHub Desktop.
Save dubbs/1730900 to your computer and use it in GitHub Desktop.
svn helpers
function branch()
{
echo "http://havok.thezoo/repos/$1/trunk/ http://havok.thezoo/repos/$1/branches/$2/ -m \"BRANCH $2 created from trunk\""
}
function tag()
{
args=$2
major=`echo $args | awk -F"." '{print $1}'`
minor=`echo $args | awk -F"." '{print $2}'`
branch=$major.$minor
echo "http://havok.thezoo/repos/$1/branches/$branch/ http://havok.thezoo/repos/$1/tags/$2/ -m \"TAG $2 created from BRANCH $branch\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment