User`s guide

MPLAB
®
IDE User’s Guide
DS51519B-page 68 © 2006 Microchip Technology Inc.
An example of performing the checkout is listed below:
$ cd DirABOVEWhereIWantMySrcTree
$ cvs checkout MyProject
cvs server: Updating MyProject
U MyProject/main.c
U MyProject/such-and-such-a-file.c
U MyProject/foo.h
It is important that you give this command from above the directory where you want
your source tree to reside, because CVS will actually create the entire source tree
within the current working directory.
4.6.3.3 ADDING A NEW DIRECTORY
You can use the cvs add command from within MPLAB IDE to add new source files
as long as the required directory structure already exists in the repository. The add
command will NOT work on a file if any of the required directories don't exist in the
repository.
To create the directory structure in the repository, you must use the cvs import
command once again. An example of this is as follows:
$ cd TopOfSrcTree
$ cvs import -m "message" MyProject/NewSubDir VendorTag ReleaseTag
N MyProject/NewSubDir/yet-another-file.h
No conflicts created by this import
Once again, you should give this command from within the directory that is the top-level
directory of your source tree. But this time, when you specify the directory within the
repository, you should give the path in the repository that will represent the new
directory that you are adding. (That is what MyProject/NewSubDir represents in this
example.)
4.6.4 Subversion
Having some knowledge of Subversion and MPLAB IDE is necessary to use
Subversion from within MPLAB IDE.
For more information on this version control system, please see the related web site.
Subversion: http://subversion.tigris.org/
If your source files aren't already in the repository, you will have to import them to get
started. This creates the directory structure in the repository and places all of the files
there as well.
CAUTION
Do not place the workspace (MCW) or build-state (MCS) files on the repository.
MPLAB IDE needs to be able to write to these files while running.