Wednesday, 5 November 2008

Importing the OmniGroup Frameworks into your Subversion repository

This is a quick reference based on the Vendor Branches of the "Version Control with Subversion" book.

So you want to use the wonderful code that the Omni Group gives you for free. Good, just follow the following instructions.

Create a vendor branch in your repository:
myRepo/trunk
myRepo/branches
myRepo/tags
myRepo/vendor/OmniFrameworks
then download the frameworks distribution from the Omni Group site, unpack it in the, say, tmp folder of your home. It will have a structure like:
tmp/OmniGroup/Configurations
tmp/OmniGroup/Frameworks
tmp/OmniGroup/Scripts
Now use the svn_load_dirs.pl program to import the distribution to the repository.

svn_load_dirs.pl -t 2008-09-09 \
http://example.com/myRepo/vendor/OmniFrameworks \
current \
~/tmp/OmniGroup
You will have the code loaded to the current and 2008-09-09 directories.
myRepo/trunk
myRepo/branches
myRepo/tags
myRepo/vendor/OmniFrameworks/current
myRepo/vendor/OmniFrameworks/2008-09-09
The next time you import a new version of the frameworks, do the same steps as above. According to the Subversion Book everything will be all right ;)

No comments:

:)