Adding and Removing Files from a Repository


The IDE automatically schedules any new files in a CVS working directory for addition to the repository. In addition, the IDE scans the file and suggests whether to add it as text or as a binary file. Likewise, any file you delete in the IDE is automatically scheduled for removal from the repository.

This differs from the way CVS is commonly used on the command line and can potentially get you into trouble. For example, if you want to get a clean copy of your file from the repository, a common practice on the command line is to simply delete the file and update it. In the IDE, however, this deletes the file and schedules it for removal from the repository. In this case, even updating the containing folder does not get you a clean copy of the file.

If you want to get a clean copy of a file from the repository, right-click the file and choose CVS | Revert Modifications. If you accidentally deleted a file and would like to get a clean copy of the file from the repository, open the file's folder in the Versioning window, right-click the file in the Versioning window, and choose Revert Modifications.

Likewise, if you added a new file and do not want to commit it to the repository yet, choose to ignore the file completely or just to exclude it from commits as described above.



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