Ignoring Files in CVS Operations


Not every file that you have in a working directory needs to go into the CVS repository. You often have place-holder files, copies of files, and files that are not finished yet in your working directory. In NetBeans IDE, you can easily specify which files CVS should ignore. Since the IDE automatically schedules any new files for addition to the repository, it is important that you manage this function carefully.

You have two choices:

  • Specify that a file should be excluded from CVS commits. This option is best for files that will eventually end up in the repository or are already in the repository, but you do not want to commit yet. To exclude a file from commits, right-click it in the Versioning window and choose Exclude from Commit. You can also exclude a file in the Commit dialog box.

  • Specify that a file should be ignored altogether in CVS commands. This option is best for files that should never be added to the repository. To ignore a file, right-click its node in any IDE window and choose CVS | Ignore.

When you choose to ignore a file, the IDE adds the file name to the containing folder's .cvsignore file. This results in a locally modified or new .cvsignore file in the folder, which is in turn scheduled to be committed to the repository. You should only commit the .cvsignore file if it is likely that other developers will also have the same file in the same location.




NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net