[evla-sw-discuss] code organization

Brian Truitt btruitt at nrao.edu
Wed Oct 25 18:33:49 EDT 2006


John Benson wrote:
> I lost track to the 'tags' issue in subversion. Can subversion do some 
> reasonable equivalent
> to cvs tags? I use those..
> 
> John
> 

Sorry I confused things. In short: absolutely, subversion has a 
perfectly workable tag solution. It just works a little differently than 
cvs and when it comes time to actually use tags, the differences need to 
be made clear.


A short example, say we have a project like so:
svnroot/
   project/
     trunk/
     tags/

You'd do all your work on the trunk directory and check it out like so:
svn co file:///home/asg/svnroot/project/trunk myproject

To make a tag, you don't need to have anything checked out because it 
changes the repository directly:

svn copy file:///home/asg/svnroot/project/trunk 
file:///home/asg/svnroot/project/tags/v1.3.4

(with all that on one line of course)

Now you have a copy of the current version of your project under 
tags/v1.3.4/. It can be checked out or exported at any time:

svn export file:///home/asg/svnroot/project/tags/v1.3.4 myproject-1.3.4

Changes to the trunk do not get reflected in the tag, as one would expect.

Brian.



More information about the evla-sw-discuss mailing list