Sha256: 311a694071d371cbca6be3852fc4888a3f35b4a25c32e1217958ae9cc4fa02cf

Contents?: true

Size: 591 Bytes

Versions: 25

Compression:

Stored size: 591 Bytes

Contents

@echo off

SET REPOSITORIES=http://somewhere.com/svn/
SET TRUNK=trunk
SET BRANCHES=branches

if '%1' == '' goto usage
if '%2' == '' goto usage
if '%3' NEQ '' goto usage
if '%1' == '/?' goto usage
if '%1' == '-?' goto usage
if '%1' == '?' goto usage
if '%1' == '/help' goto usage

svn copy %REPOSITORIES%%1/%TRUNK%/ %REPOSITORIES%%1/%BRANCHES%/%2/ -m"Creating a branch for %2."

::svn up

if %ERRORLEVEL% NEQ 0 goto usage

goto finish

:usage
echo.
echo Usage: branch.bat repositoryName BranchName
echo Example branch.bat Bob Feature1
echo.
goto finish

:finish

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
uppercutbuild-1.4.2.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.4.1.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.4.0.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.3.0.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.2.0.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.1.2.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.1.0.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.6.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.5.0.20101008 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.5.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.4.0 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.3.0.20100818 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.2.0.20100810 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.1.0.20100809 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-1.0.0.0.20100806 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-0.9.0.346.20100805 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-0.9.0.345.20100805 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-0.9.0.340 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-0.9.0.337 docs/Samples/scripts/SVN/branch.bat
uppercutbuild-0.9.0.334 docs/Samples/scripts/SVN/branch.bat