You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jean-Yves Avenard <je...@hydrix.com> on 2005/04/14 09:40:41 UTC

Using TAGS like in CVS

Hello

One feature I've been missing since using Subversion for the past one  
year is the ability to work with tags within the HEAD revision.

Let me explain.

In CVS, it would be possible to tag a subdirectory of a project while  
working on HEAD.

Let say the project is located in:
/trunk/myproject

And it contains several subdirectories:
/trunk/myproject/dir1
/trunk/myproject/dir2
/trunk/myproject/dir3

Let say I applied a tag MY_TAG to the files in the dir3 sub-directory

Then people could check-out HEAD with specifying the tag.
CVS default behaviour is to checkout HEAD if no tags exist

Typically doing:
cvs co -r MY_TAG trunk/myproject

This will check-out HEAD *except* where the tags exist, that is only  
dir3 would be a special check-out.
Any calls to cvs update would update all files *except* to the files  
tagged with MY_TAG

In SVN this behaviour isn't possible.
The only way to do this is to first check-out HEAD, then go into what  
has been checked-out, and check-out again the directory dir3 from the  
tag area (which also means you have to know where the tag is located)

I find this very difficult to manage and the usefulness of a tag has  
been lost IMO in SVN.

Now maybe I've just missed something obvious, and would love somebody  
to enlighten me.

Is a similar behaviour possible with Subversion?

Cheers
Jean-Yves


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Using TAGS like in CVS

Posted by Ben Collins-Sussman <su...@collab.net>.
On Apr 14, 2005, at 8:23 AM, Jean-Yves Avenard wrote:
>
> I know it's possible to emulate a similar behaviour in SVN however you 
> have to checkout more than once, this is what I have a problem with. 
> It's not as easy to use a the cvs tag properties. I wish there was 
> something similar in SVN.

You don't need to checkout more than once.  Do a checkout of trunk, 
then 'svn switch' selected subdirs or files to other branches or tags.  
The book discusses this.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Using TAGS like in CVS

Posted by Jean-Yves Avenard <je...@hydrix.com>.
It's very simple really

Working in HEAD, a subdirectory is tagged as you know it's working  
and you want to keep a stable release while everything else keeps  
getting updated.

A typical example in my case is that we have a full repository for  
the firmware of a product. Each OS is separately tagged.
You can do a cvs co -r "with_os_1_0", you get the latest userland  
with the specific OS.

I know it's possible to emulate a similar behaviour in SVN however  
you have to checkout more than once, this is what I have a problem  
with. It's not as easy to use a the cvs tag properties. I wish there  
was something similar in SVN.

So far this is my main grip about SVN.
We sill have projects under CVS with such tags (big projects too) and  
migrating them to svn would mean we can't use it as we do now

Jean-Yves

On 14/04/2005, at 11:07 PM, Noel Grandin wrote:

> Maybe if you told me why you want to do that?
>
> I've worked with CVS quite a bit, and I would find it weird to have  
> only part of the tree tagged.
>
> It is possible in SVN to check out a whole project from HEAD, and  
> then check out parts of the directory
> structure on different tags/branches.
>
> You could also create a separate module in your repository and use  
> the svn:externals property such that checking out that module will  
> create the correct structure. Just make sure you read the  
> documentation about committing such working copies.
>
>


Re: Using TAGS like in CVS

Posted by Noel Grandin <no...@peralex.com>.
You normally do that in CVS because tagging/branching your whole project is expensive.

But in Subversion it's not, so you can easily branch/tag your entire project and the storage/time/cpu costs are small 
(constant).

And it's a lot cleaner.

Jean-Yves Avenard wrote:
> Hello
> 
> One feature I've been missing since using Subversion for the past one  
> year is the ability to work with tags within the HEAD revision.
> 
> Let me explain.
> 
> In CVS, it would be possible to tag a subdirectory of a project while  
> working on HEAD.
> 
> Let say the project is located in:
> /trunk/myproject
> 
> And it contains several subdirectories:
> /trunk/myproject/dir1
> /trunk/myproject/dir2
> /trunk/myproject/dir3
> 
> Let say I applied a tag MY_TAG to the files in the dir3 sub-directory
> 
> Then people could check-out HEAD with specifying the tag.
> CVS default behaviour is to checkout HEAD if no tags exist
> 
> Typically doing:
> cvs co -r MY_TAG trunk/myproject
> 
> This will check-out HEAD *except* where the tags exist, that is only  
> dir3 would be a special check-out.
> Any calls to cvs update would update all files *except* to the files  
> tagged with MY_TAG
> 
> In SVN this behaviour isn't possible.
> The only way to do this is to first check-out HEAD, then go into what  
> has been checked-out, and check-out again the directory dir3 from the  
> tag area (which also means you have to know where the tag is located)
> 
> I find this very difficult to manage and the usefulness of a tag has  
> been lost IMO in SVN.
> 
> Now maybe I've just missed something obvious, and would love somebody  
> to enlighten me.
> 
> Is a similar behaviour possible with Subversion?
> 
> Cheers
> Jean-Yves
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 


NOTICE: Please note that this email, and the contents thereof, 
are subject to the standard Peralex email disclaimer, which may 
be found at: http://www.peralex.com/disclaimer.html

If you cannot access the disclaimer through the URL attached 
 and you wish to receive a copy thereof please send 
 an email to email@peralex.com