I am building a target in nant that branches our project.
It creates a branch in SVN, checks out that branch, updates various files within that branch with the new provided version number, checks it all in.
The SVN branch works fine the first time (using the copy command URL->URL) , but if it is run a 2nd time, it copies the trunk to the BranchName/trunk rather than failing saying it already exists.
Is there a reasonable way for Nant to detect that the branch already exists and not to try to do the SVN copy a 2nd time?
I am trying to build some intelligence into the script so that if it is run a 2nd time with the same inputs that nothing bad happens.