1<div id="Tagging-add_002fremove"></div> 2<div class="header"> 3<p> 4Next: [[cvs: Sticky tags#Sticky tags|Sticky tags]], Previous: [[cvs: Deleting, moving, and renaming tags#Deleting, moving, and renaming tags|Modifying tags]], Up: [[cvs: Revisions#Revisions|Revisions]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p> 5</div> 6 7---- 8 9<div id="Tagging-and-adding-and-removing-files"></div> 10=== Tagging and adding and removing files === 11 12The subject of exactly how tagging interacts with 13adding and removing files is somewhat obscure; for the 14most part <small>CVS</small> will keep track of whether files 15exist or not without too much fussing. By default, 16tags are applied to only files which have a revision 17corresponding to what is being tagged. Files which did 18not exist yet, or which were already removed, simply 19omit the tag, and <small>CVS</small> knows to treat the absence 20of a tag as meaning that the file didn’t exist as of 21that tag. 22 23However, this can lose a small amount of information. 24For example, suppose a file was added and then removed. 25Then, if the tag is missing for that file, there is no 26way to know whether the tag refers to the time before 27the file was added, or the time after it was removed. 28If you specify the ‘<code>-r</code>’ option to <code>cvs rtag</code>, 29then <small>CVS</small> tags the files which have been removed, 30and thereby avoids this problem. For example, one 31might specify <code>-r HEAD</code> to tag the head. 32 33On the subject of adding and removing files, the 34<code>cvs rtag</code> command has a ‘<code>-a</code>’ option which 35means to clear the tag from removed files that would 36not otherwise be tagged. For example, one might 37specify this option in conjunction with ‘<code>-F</code>’ when 38moving a tag. If one moved a tag without ‘<code>-a</code>’, 39then the tag in the removed files might still refer to 40the old revision, rather than reflecting the fact that 41the file had been removed. I don’t think this is 42necessary if ‘<code>-r</code>’ is specified, as noted above. 43 44 45---- 46 47<div class="header"> 48<p> 49Next: [[cvs: Sticky tags#Sticky tags|Sticky tags]], Previous: [[cvs: Deleting, moving, and renaming tags#Deleting, moving, and renaming tags|Modifying tags]], Up: [[cvs: Revisions#Revisions|Revisions]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p> 50</div> 51This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>]. 52