[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: simulating tags like CVS

From: Reinhard Brandstädter <reinhard.brandstaedter_at_jku.at>
Date: 2006-10-30 11:06:28 CET

On Friday 27 October 2006 20:34, surendra M wrote:
> I've few questions on tags on checking out specific files.
> e.g take the directory structure.
> X
> |__Y
> |
> |____Z/------1.java
> / -----2.java 'Z' is tagged as PROD_FIX_1.
> / -----3.java
> If you take the above scenario, if you tag the directory 'Z' (say tag
> name PROD_FIX_1)in CVS and say checkout X using the tag PROD_FIX_1,
> we'll get the entire directory structure shown above along with the
> files under 'Z' where as in case of SVN(checkout /tags/PROD_FIX_1)
> we'll get only the directory 'Z'and all the files under 'Z'. Is this
> expected?
> Is there any way of simulating tags behaviour using Subversion just
> like CVS without tagging the root directory (X)?

Hi Suren,

In Subversion Tags and Branches are more "conventions" of copying directories
to specific named other locations. These copies are cheap copies and are easy
to create and delete.

In your scenario i assume X is the project's root directory (located under
trunk directory in subversion). Although possible to copy/tag "Z" in
subversion I'd recommend to do this tagging ALWAYS on the trunk directory of
your project so you have all content of trunk at the time of your tagging in
your tag directory.
Think of a tag as a state of the whole trunk directory at a specific time, not
as a label attached to files and directories (how CVS does).

concerning "natural language name":
a tag is just another subdirectory in the "tags" directory of your repository.
why not just name that tag-directory accordingly?
Of course you can still add svn-properties to that directory and process these
properties in your scripts.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 30 11:07:19 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.