views:

47

answers:

1

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?

+1  A: 

-r option identify 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://svnrepo/proj/tags/proj-x.y.z

Adrian Shum
the answer: svn copy c:\workingCopy http://svnRepository, no need to commit first I only want the changes in the tag revision not where the working copy came from. thanks.
CRice