Setting Up Source Code Management in IDL 7
QUESTION: I know you have written detailed instructions for setting up a Subversion source control system in IDL 7, but do you have general instructions for doing so with any version control plug-in?
ANSWER: Chris Torrence of ITTVIS gave a fairly complete explanation of how to do this on the IDL Newsgroup. I have reproduced most of it here, with light editing for added clarity.
The instructions assume you have installed the appropriate plug-in. To install a plug-in, follow these steps:
- Open the IDL Workbench, and find the Help->Software Updates menu selection.
- Select the Search for new features to install selection button, and click Next.
- What you do next depends upon which plug-in you wish to install. If you wish to install the CVS
plug-in, follow these directions:
- Make sure the ITT Visual Information Solutions site is checked, and click Finish.
- On the next display, expand the ITT Visual Information Solutions item until you see the Eclipse CVS Client selection. (It will be under Workbench Updates.)Check the Eclipse CVS Client option, then click Next.
- Accept the license agreement, and click Next.
- Your plug-in is ready to install. Click Finish to install it.
If you are installing Subversion or Perforce, you have to give the URL of the plug-in location. Instead of choosing the ITT Visual Information Solutions site, as above, click the New Remote Site button. In the pop-up dialog, enter the name of the plug-in (i.e., Subversion or Perforce) and a URL for the remote site. For Subversion, you will use the Subclipse plug-in and the site URL will be http://subclipse.tigris.org/install.html. For Perforce, the site URL will be http://www.perforce.com/downloads/http/p4-wsad/install/. The rest of the instructions are similar to the CVS instructions above.
- After installation, be sure you restart the IDL Workbench.
General Instructions for Source Code Management
The following is from Chris Torrence of ITTVIS.
Just thought it would be useful to post a quick summary of how I'm using a source code management (SCM) system like Perforce, Subversion or CVS, from within the IDL Workbench.
- Install your favorite SCM plugin feature. I'll use Perforce as an example.
- Start with a clean IDL Workspace. Do not create any projects.
- Change perspectives to the Perforce Perspective (or whatever yours is).
- Set up your connection to your server. Make sure you can see the files and folders within your depot/repository/.
- Navigate to the folder that contains the IDL code that you want to work on. This folder can contain subfolders, doesn't matter. You need to decide on how best to split up your repository into IDL Projects.
- Right click on the desired folder within the depot/repository view, choose Team->Import as Project. (This menu item may be slightly different depending on your SCM.)
At this point, the IDL Workbench will import that folder into your Workspace as a new Project. Because it contains IDL code, it will automatically recognize it as an IDL Project. Note that the files are not copied. They still live over in your "sandbox," wherever that happens to be on your system. You don't care.
Some tips on how to use your SCM plugin. This assumes that the IDL Project has been imported using the above steps.
- Open up the Preferences dialog, type the word "decoration" into the filter box. This should show all pages that have to do with marking or decorating the files within the Project Explorer. Go under the first page, which should be General->Appearance->Label Decorations. Be sure to enable decorations for your SCM plugin. Then go under the other decoration pages and change the settings to what you want.
- When you begin editing a file within an IDL Project, it should automatically check it out and mark it as writeable. If you've set up your decorations correctly, the Project Explorer should now have some sort of little decorator indicating that the file is checked out. You should also be able to see if other people have the same file checked out.
- To add a new file, either create the file within the desired folder within your Project, or copy an existing file into the folder. Then right click on the file, choose Team->Open for Add (or whatever your menu item is). This will mark the file for "add", but won't check it in.
- To sync your project (if multiple people are working on the same repository), just do Team->Sync to Head. You may need to also do a Team->Refresh if you have synced manually outside of the IDL Workbench.
Copyright © 2007 David W. Fanning
Last Updated 28 December 2007