4.9 Sticky tagsSometimes a working copy's revision has extra data associated with it, for example it might be on a branch (see section 5. Branching and merging), or restricted to versions prior to a certain date by `checkout -D' or `update -D'. Because this data persists -- that is, it applies to subsequent commands in the working copy -- we refer to it as sticky. Most of the time, stickiness is an obscure aspect of CVS that you don't need to think about. However, even if you don't want to use the feature, you may need to know something about sticky tags (for example, how to avoid them!).
You can use the
The sticky tags will remain on your working files until
you delete them with `cvs update -A'. The
`-A' option merges local changes into the version of the
file from the head of the trunk, removing any sticky tags,
dates, or options. See A.17 update--Bring work tree in sync with repository for more on the operation
of
The most common use of sticky tags is to identify which
branch one is working on, as described in
5.3 Accessing branches. However, non-branch
sticky tags have uses as well. For example,
suppose that you want to avoid updating your working
directory, to isolate yourself from possibly
destabilizing changes other people are making. You
can, of course, just refrain from running
People often want to retrieve an old version of
a file without setting a sticky tag. This can
be done with the `-p' option to
However, this isn't the easiest way, if you are asking
how to undo a previous checkin (in this example, put
`file1' back to the way it was as of revision
1.1). In that case you are better off using the
`-j' option to
This document was generated by Frank Budszuhn on 10/28/2004 using slightly modified texi2html |