At the moment I’m using Xojo binary format with external items for my three main projects. I want to convert these projects to text format. However, the projects share some common code. I know I need to use something called “externals” in Cornerstone. But how do I do that?
- I need to create new folders for my projects.
- Then I convert the project to text format.
- What do I do with the common classes?
- What do I do in Cornerstone? There is an externals dialog but the manual is pretty quiet on how to use this (or I’m too stupid).
Any ideas?
An external basically points to another SVN repository. As far as your shared code goes, it must be absolutely identical in each of your projects.
The best success I’ve had has been to make sure your shared code lives in a directory in your project (because externals will want to be connected to that). Save your project as text into your project’s working copy and then make a copy of the shared code into the working copy of the shared files and check that in. Then set up the external and point it to the correct location in your project.
Externals have the nice feature that you’re not forced to update at any particular time, so if something changes in project A, you can upgrade project B to use the new stuff when you’re good and ready.
I’ve got one set up here, I’ll go see if there’s anything I’m forgetting.
Yup, you then select the directory where the shared directory will be and click Externals. Check Out In should be set to the name of the shared items folder, From is the repository and Revision lets you select latest or a specific one.