Tuesday, March 18, 2008

The update Command

The update command synchronizes the changes in the repository source files with the files in the current working copy. This is useful when multiple end users are working on the same set of files. End users commit changes after you invoke checkout. This enables you to incorporate most recent revisions in the local working copy of the repository. For example, to update all the files in my_project except new.txt, the syntax is:

$ cvs update –I new.txt –P my_project

various options that you can use with the update command:
Option Description

-A Resets tags, dates, and keyword options.
-C Overwrites locally modified working files with original files from the repository. This is particularly useful if local files are corrupted.
-d Replicates the directory structure of the repository, if it is not already mirrored in the local working copy. This is useful if a directory has been created after you checkout.
-I Ignores the specified file.
-w Filters the specified file. You can use wildcard patterns to filter files.
-j Merges changes from the first specified revision to the second specified revision of the same file in the current working directory.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home