Create tag / branch from local working copy using SVN

I have a Nant script that updates the directory with the latest source code (unloaded from the svn repository), then updates the assembly information and several other files and performs some assemblies.

I want a working copy, including all the changes made (after the assembly is completed), to be included in the tag revision (described in the SVN 4.19 help. Branching / label). This should happen with the command line arguments that run at the end of the script assembly.

The following line is currently used, but it will not accept changes.

svn copy -r 1234 c:\workingCopy http://svnRepository

Need to replace a working copy after the above command and commit the changes?

+3
source share
1 answer
Option

-rindicates the copy to be copied. I think you do not need to provide this.

I suggest your script do:

  • svn commit
  • svn copy c:\workingCopy http://example.com/svnrepo/proj/tags/proj-x.y.z
+4
source

Source: https://habr.com/ru/post/1756115/


All Articles