CVS Policies the linux development platform 2003

180 Chapter 6 • Introduction to CVS At this stage, you will be presented with your preferred editor as defined by the environ- ment variables CVSEDITOR or EDITOR. This will allow you to create a log entry that describes the project, the initial state that it is in, and anything else of importance. When you save that file, the information, along with the imported files, will be saved in the repository. To avoid having the editor displayed, you can include a log entry on the command line with the – m option. Log entries with spaces or other special characters in them should be enclosed in quotes. cvs import –m “Initialized the project” Fuzion \ OSS_Software release_0_1 To ensure that the files have been imported, issue the following command from the server that holds the repository: ls –l CVSROOTFuzion You should see a copy of each file in your project with a ‘,v’ appended to the filename. At this point, you should remove the original directory after ensuring that you have a backup and check out the project with CVS so that any modification can be committed to the repository. cd homelcp rm –rf fuzion cvs co Fuzion cd Fuzion At this point you are ready to continue development on this project with CVS.

6.4 Using the CVS Client

There are several methods of accessing a CVS repository. The first is local access. This can be accomplished by a user logging in at the terminal or logging in remotely over the network. Either way, the developer must have a local account on the machine, a home directory, and the repository to be accessed via the local session. N O T E Special care must be taken if you are importing binary data into a CVS repository. This can be the case if you are importing files from a Windows platform, or if you use CVS to manage the files necessary for maintaining a web site. Graphic files and dlls will not import correctly unless special care is taken. One way to do this is with the wrapper function of CVS. To import a project and treat all files with a .jpg extension as binary data, issue the following command: cvs import -I -W .jpg -k b Pname V_tag R_tag