Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a tag / branch from local working copy using SVN

I have a Nant script which updates a directory with the latest source code (checked out from the svn repository), then updates Assembly Info and a few other files and does some builds.

I want the working copy which includes all changes made (after the build is run) be made into a tag revision (described in SVN help 4.19. Branching / Tagging). This should happen via command line arguments run at the end of the build script.

Currently the following line is used but it will not pick up the changes.

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

It is necessary to switch the working copy after the above command and commit the changes?

like image 908
CRice Avatar asked Jul 23 '10 04:07

CRice


1 Answers

-r option identifies the revision to be copied. I think you don't need to provide that.

I shall suggest your script doing:

  1. svn commit
  2. svn copy c:\workingCopy http://example.com/svnrepo/proj/tags/proj-x.y.z
like image 92
Adrian Shum Avatar answered Sep 24 '22 14:09

Adrian Shum