# Create new branch and switch to it
function svn_bswitch()
{
branch=$1; shift
msg="$1"; shift
URL=$(svn info . | sed -ne 's@URL: \(.*\)@\1@p')
REPO=$(svn info . | sed -ne 's@Repository Root: \(.*\)@\1@p')
BRANCH_URL=$REPO/branch/$branch
svn copy $URL $BRANCH_URL -m "$msg"
}
# Switch to a branch or tag
function svn_switch()
{
d=$1; shift
REPO=$(svn info . | sed -ne 's@Repository Root: \(.*\)@\1@p')
URL=$REPO/$d
svn switch $URL
}
Главная
- Просмотров: 2014