Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practice for SVN tags? [closed]

Should I use them as separate releases? Do I check them back into trunk or branches? Is this all in the red book and I've just wasted your time?

like image 587
nickmjones Avatar asked Dec 16 '08 19:12

nickmjones


People also ask

How do I use SVN trunk branches tags?

All you need to do is make a copy of your project using "svn copy". This command will require the URL of your project's /trunk directory as well as the URL of the directory where you want to create your branch. This location will virtually always be inside of your /branches directory.

What are SVN tags used for?

Version Control System supports the tag operation by using that concept that one can give meaningful name to a specific version of the code. Tag allows to give descriptive and memorable names to specific version of code. For example BASIC_ARRAY_OPERATIONS is more memorable than revision 4.

How do I checkout tag in SVN?

As such, to checkout a tag, you check out with your URL referencing the directory. To commit back that tag, you do a normal commit. To commit back to a different tag, you svn copy the files into the new "correct" tag directory, which you might have to mkdir ...; svn add (dir) prior to the svn copy.


1 Answers

Do not forget that a tag and a branch are essentially the same thing in SVN: both are the result of svn copy

The trick is, since a tag represents a snapshot, it should be an "immutable" one, in that you should not make any modification on it.

What that snapshot (tag) represents is entirely up to you. it can be:

  • a stable state in the development
  • a mark just before a complicated merge (in order to go back to it if the merge is too complex to be resolved quickly)
  • a release or a patch
  • and so on...
like image 198
VonC Avatar answered Oct 14 '22 14:10

VonC