SVN/Tortoise - Label generation
Solution 1
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.
Solution 2
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
Solution 3
See "Branching / Tagging" section of Tortoise SVN "Daily Use Guide"
Solution 4
Tags
are the equivalent of labels in Subversion.
Tags are created via the copy
command, or in the TortoiseSVN Branch/Tag
menu option.
By convention, tags
are copied to a tags
path in the Subversion repository.
BTW, the TortoiseSVN help is really well done - the Daily Use Guide is very helpful.
Solution 5
You could do this two ways.
Commit the current state of files, now you can always revert to this revision and get that state of your files back
Create a new tag with your current files, and continue working in the trunk.
billcoke
Updated on July 12, 2022Comments
-
billcoke almost 2 years
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.
-
crashmstr about 15 yearsI've seen "every commit creates a 'label'" said before, but I don't consider 3876 or any other system generated number to be a 'label'. Labels (or tags, same thing) give user defined meanings to revisions. Revision numbers are not labels.
-
Akshay Nalawade almost 15 yearsWhen you commit you can choose to add a note or "label" along with the files and commit number. I assume this is what tharkun is talking about.
-
Lemon almost 15 yearsA link to that Daily Use Guide?
-
John C almost 14 years@Svish, the Daily Use Guide is chapter 5 of the TortoiseSVN helpfile (which should have been installed with the package). It covers all the most common operations you'd do in an average day. (And yes, it and the whole docs are extremely good).
-
markus about 13 yearsWhat I meant is that there is no technical difference, but an important theoretical difference.
-
umassthrower almost 13 yearsSo label in systems that support it is a set of file revisions. Suppose you have files: