Tuesday, March 18, 2008

The import Command

The import command enables you to incorporate source files from another project into your repository. This project can be either entirely new or a branch of an already existing module. There are three arguments with the import command:

Name of the repository and the module, if any
The vendor tag
The release tag

You need to specify the name for the module where the files will be stored in your repository. If a specified directory does not exist, CVS creates the directory and stores the files. For example, to import files in the newcvs repository with a vendor tag, Newuser, and a release tag, Version1, the syntax is:

$ cvs import –m "Import files" newcvs Newuser Version1

If CVS ignores a file and does not import the file, CVS shows I along with the file name. For example, if a file, old.txt, is being ignored and not imported, CVS shows:

-I old.txt

Note You should use import when multiple files are added into the repository. To add a single file, use the add command.

When you import files in the main repository, the current working directory is not affected. To use the newly imported files, you need to explicitly checkout them into your current working directory.various options that you can use with the import command:


Option Description

-m Uses messages as log information.
-k Specifies the desired keyword expansion mode.
-I Specifies the file names to be ignored, while importing.
-W Specifies the file names to be filtered, while importing.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home