Tutorials
The import Command
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:
    OptionDescription
    -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.
  • CVS
    CVS Release
    CVS Log
    CVS Update
    CVS init
    CVS commit
    CVS add
    CVS remove
    CVS edit
    CVS Rdiff
    CVS Export
    CVS History
    CVS import
    CVS Login
    CVS Logout
    CVS Annotate
    CVS Tag
    CVS Status
    CVS watch
    CVS watchers
    CVS editors
    CVS Rtag
    CVS checkout
    CVS diff