By Peter Bell

Instructions for Getting Started with Subversion on RIAForge using Subclipse

Just in case anyone else hadn't used svn before but wanted to get started with a RIAForge svn repository, here are some quick instructions. If any of this is wrong, please let me know!

Start by following Brians instructions on getting started with Subclipse.

Before checking out your first working copy, you’ll need to create some folders and import the files for your repository. Start by connecting to your repository (e.g. http://svn.riaforge.org/lightwire). Then right click on the repository, new, new remote folder and create folders for branches, tags and trunk. Under trunk, create a folder with the name of your project.

Once you’ve done that, right click on the project named folder in subclipse (for me it was trunk/lightwire) and select import. Select the folder on your hard drive to import from which contains all of the files for the project and click “finish” and you’re done.

You can now go on to check out a working copy as in Brians instructions. If you have any questions, there is a good online book and Simeon always has a bunch of great Subversion postings that are worth checking out. Just search his blog for Subversion.

Comments
You don't really need a folder with the project name under trunk. That's usually needed if you're sharing the same repository for multiple project, but with RIAForge you get a dedicated repo, thus, you can place your project files directly under the trunk folder.
# Posted By Rob Gonda | 10/22/06 7:34 PM
Hi Rob,

Thanks for the comment! The project folder under the trunk folder is definitely optional. I'm going to keep mine for now, but you're right, with a dedicated repo it isn't needed.
# Posted By Peter Bell | 10/22/06 7:47 PM
hi peter,

I'm kinda a newbie when it comes to version control systems. I'd like to know the difference between CVS and SVN and which is better.

I have a couple of resources I could use for getting started with CVS (like TortoiseCVS), but which resource can you advise me to get started with SVN, as a newbie.
# Posted By William from Lagos | 10/30/06 3:06 PM
Hi William,

I'm probably the worst person to ask as I know very little about source control. But from my understanding, SVN was put together by ex-members of the CVS team and was designed to overcome perceived shortcomings in CVS.

There is TortoiseSVN for accessing subversion repositories using a Windows computer, or you could use Subclipse - a plug in for Eclipse.

There are lots of articles online, so beyond the above advice, I'd try Googling!
# Posted By Peter Bell | 10/30/06 3:10 PM
William,

There are a few differences between them, but among the most important, at least to me:
SVN directories, renames, deleted, and meta-data are versioned, allowing you keep track of structural changes.
SVN commits an entire batch with the same revision number.
SVN allows external repositories to be included/linked into your.
SVN has a much better delta algorithm for storing binary files.
SVN has better support of tagging and branching.

I've blogged about svn clients and servers a little, you can read it here: http://www.robgonda.com/blog/index.cfm/Subversion

Cheers.
# Posted By Rob Gonda | 10/30/06 9:16 PM
thank you peter and rob, especially for the info in the subversion category on your blog. After much reading and being a single developer on most projects I work on, i have decided to start with TortoiseCVS and CVSNT (if i need a server) for version control for my projects.

Please let me know if this is not a bad choice, your comments and further recommendations are welcomed. Thanks guys.
# Posted By William from Lagos | 10/31/06 4:44 AM
I REALLY don't see many people starting with CVS these days. Mostly I see people who already use CVS stay with it, but most people setting up new open source version control systems are going with Subversion. Unless you have a really good reason to go with CVS, I would think seriously about going with subversion instead.

Best Wishes,
Peter
# Posted By Peter Bell | 10/31/06 8:33 AM
Thanks Peter.

OK, this is the scenario. Most of the projects I work on (ColdFusion, Flash, Flex etc), are done on my own. My current practice of back-up has always been to make copies of my projects and store them in a dedicated hard drive (don't laugh), as I work. For web-based projects, I would upload the files to the remote server. And it is always hell trying to sync the files on the remote web host and that on my local machine.

In essence I have 2 very important needs. One, to able to have version control on the source codes of my projects. And Two, to be able to sync files I have on my local machine with teh ones deployed on remote web servers. Dreamweaver's built-in synchronize capabilities aren't that good enough for me, not to mention how long it takes over my modem internet connection.

Basically, these are the problems I faced with, and I'd sincerely appreciate your advice (which could include which software, tools, cvs or subversion etc) on how I can tackle them.

Thanks
# Posted By William from Lagos | 10/31/06 10:12 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.