When you create new files that you want to include in the repository, you must tell CVS to handle the files. If the directory containing the files is not under CVS control, you will have to add it before adding the files (or copy/move the files to a directory allready under CVS control). To add files or directories into your repository, do this:
To tag one or more files or directories with a label, do the following:
Select the directory, file or files that you want to add.
Click the right mouse button on the selction, and choose the Add selection,Add selection binary or Add selection unicode menu item from the Modify menu. Use binary for non-text files, otherwise the files will be corrupted by CVS! If you cannot find your file(s) or directory, make sure that your View -> File filter menu settings are correct. By default only Show ignored is selected.
As the files are only marked for addition, you have to commit them to enter them in the repository.
If you want to add entire directory hierarchies instead of a few files, the above technique becomes cumbersome as the add operation is not recursive. In this case you should rather use import, as in Starting a New Module:
Choose the Create -> Import module menu item.
In the file dialog that pops up, select the directory you want to add by making its folder icon open (and its name highlighted).
WinCvs will now try to identify any binary files that you may have in your directory tree. If a filter window shows up, make sure the files mentioned have the correct text/binary setting.
In the Import settings dialog, type the module name with the directory appended. If the module is called MyProject, and you are importing the subdirectory source/utils, you enter MyProject/source/utils in the Select the module name... input field.
Type your name, your company name or your project name (no spaces) in the Vendor tag field.
Type start in the Release tag field.
If you want to give an initial description of the module, please do so in the Enter the log message field.
Press the OK button.
WinCvs will now import your entire directory hierarchy to the CVS server, under the given module. Note that nothing will be changed in your local files during the import operation. This means that your local copy will not be under version control after the import. To have the newly imported hierarchy under version control, obtain a copy of it from the repository:
Move your original hierarchy away, eg. by renaming the directory you just imported to *.old using Windows' file explorer, or by deleting it.
In WinCvs, select the directory above the one you just added. Right click on it, and choose Update selection.
Make sure Create missing directories that exist in the repository is checked.