throws Exception
{
File messageFile = File.createTempFile( "maven-scm", "commit" );
messageFile.deleteOnExit();
ScmBranchParameters scmBranchParameters = new ScmBranchParameters();
scmBranchParameters.setRemoteBranching( true );
scmBranchParameters.setScmRevision( "2" );
testCommandLine( "scm:svn:https://foo.com/svn/trunk", "svnbranch", messageFile, "user",
"svn --username user --no-auth-cache --non-interactive copy --file " + messageFile.getAbsolutePath()
+ " --revision 2 https://foo.com/svn/trunk https://foo.com/svn/branches/svnbranch",
scmBranchParameters );