Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN/Tortoise - Label generation

In Clearcase I can generate a "label" for a given set of files and always go back to that label to regenerate all the files as they were when I generated the label.

How do I do this in Subversion? I'm using the Tortoise front end [Windows] to SVN and I'm not sure how to accomplish this functionality.

like image 462
billcoke Avatar asked Dec 08 '08 19:12

billcoke


People also ask

What is tag in TortoiseSVN?

Tags allow us to give a more human-friendly name to a specific revision of our folders/files. Branching gives us the capability to create a copy of the folders/files in our repository and have a different copy to work on – without fear of corrupting our main copy.

How do I rename tortoise in SVN?

If you want to do a simple in-place rename of a file or folder, use Context Menu → Rename... Enter the new name for the item and you're done.

What is SVN tag?

A tag is just a “snapshot” of a project in time. In Subversion, this idea already seems to be everywhere. Each repository revision is exactly that—a snapshot of the filesystem after each commit. However, people often want to give more human-friendly names to tags, such as release-1.0 .


2 Answers

In fact in SVN every commit creates a 'label'. You can go back to every revision (commit) at any moment.

There is no difference between a branch and a tag in theory. Just that a branch is developed further and merged with commits from different developers whereas noone should ever commit to a tag.

Tags are normally given a more verbose name such as 'RC 1.5 - the day when it finally seemed to be stable'.

That explains why 'Create branch/tag' in Tortoise are one.

And essentially svn just creates a copy of the last revision into another directory (e.g. tags). This copy is of course not a full copy but a normal diff, therefore the continuous revision numbers.

like image 114
markus Avatar answered Oct 01 '22 18:10

markus


The equivalent to a label in subversion is a "tag" (i.e. creating a branch in a folder for the specific purpose of marking a revision). In the repo-browser, right click, "Copy to..." and then pick a new folder name.

http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html

like image 43
crashmstr Avatar answered Oct 01 '22 17:10

crashmstr