Appendix A. How to use Subversion with Flex + Rails

 

In this appendix, we’ll install Subversion, create a new repository, import our project into it, and configure Subversion to ignore the appropriate files. A full discussion of Subversion is far beyond the scope of this book—see http://svnbook.red-bean.com/ if you’re interested.

Note

If you aren’t afraid of the command line, consider Git instead of Subversion. To learn why, see Linus Torvalds’ (creator of Git and Linux) Tech Talk at Google: http://www.youtube.com/watch?v=4XpnKHJAok8.

First, we need to have Subversion installed. Run the following commands:

c:\peter\flexiblerails\current\pomodo>svn --version
svn, version 1.4.2 (r22196)
   compiled Nov  3 2006, 16:53:07
...

c:\peter\flexiblerails\current\pomodo>svnadmin --version
svnadmin, version 1.4.2 (r22196)
   compiled Nov  3 2006, 16:53:07
...

c:\peter\flexiblerails\current\pomodo>

If you don’t get something telling you which svn version you have, go to http://subversion.tigris.org/project_packages.html#binary-packages and download and install the appropriate version of Subversion.

Next, create a Subversion repository. I’ll create mine in c:\peter; you should pick a good spot to use:

C:\peter>mkdir svnrepo

C:\peter>svnadmin create c:\peter\svnrepo

C:\peter>