Name
tag
Synopsis
cvs [cvs-options
] tag [options
]tagname
[files
...]
Mark a revision of a single file with a meaningful name or
mark a set of revisions of multiple files so that they can all be
retrieved easily as a group. Tagnames must begin with a letter and
may contain only alphanumeric characters, underscores (_), and
hyphens (-). There are two tags reserved for CVS: the BASE
and HEAD
tags. See also rtag.
The tag
and rtag
commands are also used to create
branches.
If no revision number or date is given to the tag
command, this command tags based on
the most recent revision in the repository that was synchronized
with the current sandbox directory (i.e., the most recently
updated, checked-out, or committed revision). This revision can be
seen as the working revision
in
the cvs status
command.
Synonyms: ta
, freeze
.
Standard subcommand options: -D
,
-f
, -l
, -r
,
-R
.
Options
-
-b
Create a branch off the specified revision, using the specified tagname as the branch name.
-
-c
Check whether the sandbox copies of the specified files have been modified since they were last synchronized with the repository. If they have been modified, do not tag them and display an error. If they are unmodified, tag them with the specified tagname. This option is useful when tagging the current sandbox revisions.
-
-d
Delete the specified tagname from a file.
-
-F
Move the tagname from the revision it currently refers to, to the revision specified in the
tag
command.
Example
$ cvs tag alpha_1-5
cvs server: Tagging . T ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.