You are here: Home Help How-to How to set up SVN to download all cathnet products
Document Actions

How to set up SVN to download all cathnet products

Setting up a Subversion repositry and client using svnserve and tortoiseSVN is quite simple. Using the svn:externals property and a EXTERNALS.txt file listing all the necessary products allows for all current products to be downloaded. nice.
1. Download and install TortoiseSVN from http://tortoisesvn.net/.
2. Download and install svnserve from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 Choose the most up to date installer.
3. Create a folder to place your server, eg C:\svnserve\

4. Open the windows-explorer, go to the installation directory of Subversion (usually 'C:\Program Files\Subversion') and in the bin directory, find the files svnserve.exe, libdb44.dll, libeay32.dll and ssleay32.dll - copy these files into a directory on your server e.g. c:\svnserve

5. In C:\svnserve right click and choose TortoiseSVN and choose create repository here choose the Native Filesystem option.
6. Click start>Run type in 'cmd' and enter. This will bring up the command prompt. Navigate to the C:\svnserve folder with cd .. and cd [folder name].
7. Using the Windows explorer open the files in c:\svnserve\conf\ and change to appropriate values. eg give yourself a username and password delete the '#' to active the command lines.
8. In the command prompt, start the server with 'svnserve.exe --daemon'
9. You should be able to navigate to the server using the tortoiseSVN 'repo-browser' and type in 'svn://localhost/svnserve'. It should open up, but there is nothing there since you have put nothing there.
10. Create a new folder in the C drive such as C:\svntemp\.
11. Use TortiseSVN to check out svn://localhost/svnserve into the folder. This should create a hidden folder called .svn
11. Create a text document called 'EXTERNALS.txt' in it with the line
CMFPlone https://svn.plone.org/svn/plone/CMFPlone/branches/2.5

12. Navigate to the C:\svntemp\ and type in the command  'svn propset svn:externals -F EXTERNALS.txt .' that little dot at the end is very important I left it out and wasted a couple of hours ...
13. Now use tortoiseSVN on that folder to commit your changes. Make sure you check the EXTERNALS.txt file as well.
14. Create a new folder C:\svnout\ and use tortoiseSVN to checkout your setup, ie svn://localhost/svnserve. This should now download the EXTERNALS.txt file and then what ever is listed in the EXTERNALS.txt file. In our case plone 2.5.
15. Now you can list all your products in one file for an up to date download.You may like to start with the list at https://svn.plone.org/svn/plone/bundles/2.5/EXTERNALS.txt

You may also find http://plone.org/documentation/manual/plone-developer-reference/conventions/version-control useful
Also trying to use tortiseSVN to set the svn:externals property to '-F EXTERNALS.txt .' does not work... There may be an easier way to do this, or quicker, please comment. :)
 
by Rob Zaar last modified 2007-01-18 03:00

Copyright Privacy Contact