command uploads changes from the
sandbox to the repository;
cvs update downloads
changes from the repository to the sandbox. The two commands
complement each other, and you need to call both to keep the sandbox
synchronized with the repository. Use
when you have changed sandbox files since your last
cvs update when
you know that (or wish to check whether) the repository has been
changed since you last updated.
cvs update attempts to preserve any changes you
have made to your sandbox since you last synchronized it with the
repository. These changes will be merged into the files retrieved
from the repository. If you intend to overwrite your sandbox files
with a clean repository copy, use the
option in conjunction with any other options. Most often, you will
-C when you want to discard changes, but you
can also use the
-r (retrieve by revision),
-D (retrieve by date), or
(clear sticky tags) options.
Example 3-6 shows output from
update executed with the
-d option instructs CVS to download new
directories from the repository to the sandbox.
Example 3-6. Using cvs update
cvs update -dcvs server: Updating . cvs server: Updating doc cvs server: Updating doc/design U doc/design/Analysis.rtf U doc/design/Specification.rtf cvs server: Updating doc/plan U doc/plan/Schedule.rtf cvs server: Updating lib cvs server: Updating man cvs server: Updating src M ...