- September 18th, 2008
- 94 Comments
If you’ve ever collaborated with other people on a project, you know the frustration of constantly swapping files. Some do it by email, some through file upload services and some by other methods. It’s a pain in the neck, and every designer and developer knows it. Revision control is an excellent way to combat the problem of sharing files between workers.
Most web-developers have probably worked with some sort of revision control system, but designers may find it a foreign concept. The most obvious benefit of using revision control is the ability to have an unlimited number of people working on the same code base, without having to constantly send files back and forth.
But designers and developers can both benefit from using revision control systems to keep copies of their files and designs. You can instantly browse previous “commits” to your repository and revert to earlier versions if something happens.
This article reviews some of the top open-source version control systems and tools that make setting up a version control system easy.
CVS2 is the grandfather of revision control systems. It was first released in 1986, and Google Code still hosts the original Usenet post announcing CVS. CVS is the de facto standard and is installed virtually everywhere. However, the code base isn’t as fully featured as SVN or other solutions.
The learning curve isn’t too steep for CVS, and it’s a very simple system for making sure files and revisions are kept up to date. While CVS may be an older technology, it’s still quite useful for any designer or developer for backing up and sharing files.
- Introduction to CVS8
- CVS Best Practices9
- SVN and CVS Quick Comparison10
- Version Control with CVS on Mac OS X11
Subversion13 is probably the version control system with the widest adoption. Most open-source projects use Subversion as a repository because other larger projects, such as SourceForge, Apache, Python, Ruby and many others, use it as well. Google Code14 uses Subversion exclusively to distribute code.
Because of Subversion’s popularity, many different Subversion clients are available. If you’re a Windows user, Tortoise SVN15 is a great file browser for viewing, editing and modifying your Subversion code base. If you’re on a Mac, Versions16 is an elegant client that provides a “pleasant way to work with Subversion.” Xcode174 is Apple’s developer environment and Subversion client that ships with Leopard on a Mac.
- Subversion home page18
- Getting Started with Subversion – Mac19
- Getting Started with Subversion – Windows20
- Subversion for Designers21
- Beanstalk22 – A hosted Subversion system
- Comparison of Subversion Clients23
- Subversion for Java24
Git26 is the new fast-rising star of version control systems. Initially developed by Linux kernel creator Linus Torvalds, Git has recently taken the Web development community by storm. Git offers a much different type of version control in that it’s a distributed version control system. With a distributed version control system, there isn’t one centralized code base to pull the code from. Different branches hold different parts of the code. Other version control systems, such as SVN and CVS, use centralized version control, meaning that only one master copy of the software is used.
Git prides itself on being a fast and efficient system, and many major open-source projects use Git to power their repositories; projects like:
GitHub31 has recently helped establish Git as a great version control system, providing a beautiful front end for many large projects, such as Rails32 and Prototype33. However, Git isn’t as easy to pick up as CVS or SVN, so it’s much harder to use for a beginner.
Mercurial39 is another open-source distributed version control system, like Git. Mercurial was designed for larger projects, most likely outside the scope of designers and independent Web developers. That doesn’t mean that small development teams can’t or shouldn’t use it. Mercurial is extremely fast, and the creators built the software with performance as the most important feature. The name “mercurial” is an adjective that means “Relating to or having characteristics (eloquence, swiftness, cleverness) attributed to the god Mercury.”
Aside from being very fast and scalable, Mercurial is a much simpler system than Git, which is why it appeals to some developers. There aren’t as many functions to learn, and the functions are similar to those in other CVS systems. It also comes equipped with a stand-alone Web interface and extensive documentation on understanding Mercurial if you have been using another system.
Resources for Mercurial
- Mercurial tutorial40 – An in-depth tutorial on installing and working with Mercurial.
- List of GUI tools for Mercurial41 – Tools to use with any platform for working with Mercurial.
- Understanding Mercurial42 – A nice document explaining what Mercurial does and doesn’t do.
- Use Mercurial, you Git!43- A pro-Mercurial article highlighting reasons why Mercurial is better than Git.
Bazaar45 is yet another distributed version control system, like Mercurial and Git, that offers a very friendly user experience. It calls itself “Version control for human beings.” It supports many different types of workflows46, from solo to centralized to decentralized, with many variations in between.
One of the main features of Bazaar is the fine-grained control you’ll have over the setup. As shown with the workflows, you can use it to fit almost any scenario of users and setups. This is a great revision control system for nearly any project because it’s so easy to modify. It’s also embeddable, so you can add it to existing projects.
- Bazaar documentation51 – Tons of resources for learning everything about Bazaar.
- Bazaar in 5 minutes52 – How to set up Bazaar quickly.
- Bazaar migration guides53 – Guides on migrating to Bazaar from CVS, Subversion, Darcs, Mercurial and other systems.
- Bazaar vs. Git54 – Showcases the differences between the two decentralized systems.
LibreSource56 is a Web portal used to manage collaborative projects. It’s based on Java/J2EE and is more a set of visual collaborative tools to help facilitate projects and teams. While the other systems discussed so far have been designed more on a “command line” level, LibreSource is centered more on tools that don’t have a big learning curve.
It has built-in features such as Wiki pages, forums, trackers, Synchronizers, Subversion repositories, files, download areas, drop boxes, forms, instant messaging and more. Think of LibreSource as a collaboration hub for project development.
LibreSource is perfect for the developer or designer who doesn’t want to learn lots of technical jargon and wants to focus more on communication with the project’s members. Just install the package and start collaborating, without facing much of a learning curve.
Resources for LibreSource
- LibreSource Documentation58 – Tons of articles and tutorials for getting familiar with LibreSource.
- LibreSource vs. Subversion59 – A table showing the differences between LibreSource and Subversion.
Monotone60 is the baby of the distributed revision control bunch. While many of Monotone’s peers focus on performance, Monotone places higher value on integrity than performance. In fact, it can take quite a bit of time for a new user of Monotone to simply download the initial repository due to the extensive validation and authentication required.
Monotone is fairly easy to learn if you’re familiar with CVS systems, and it can import previous CVS projects. However, it’s not quite as popular as other version control systems.
- Monotone Wiki61 – Monotone has extensive documentation.
- Monotone front ends and Tools62 – Lengthy list of front ends for working with Monotone, as well as other development tools.
Version Control Tools
- QCT GUI commit tool63
A version control commit tool that supports Mercurial, Bazaar, Cogito (Git), Subversion, Monotone, and CVS.
- Meld64 is a merge and diff tool that allows you to compare two or three files and edit them in place, while updating automatically. It works with CVS, Subversion, Bazaar and Mercurial.
- Push Me Pull You65 is another GUI for distributed version control systems. It works with Mercurial, Git, Bazaar and Darcs.
Version Control Resources
- Distributed Revision Control Systems: Git vs. Mercurial vs. SVN66
A quick look at the major differences between the three types of revision control systems.
- Revision Control Systems67
The Wikipedia article on revision control.
- Choosing a Distributed Version Control System68
Article showing the pros and cons of each version control system. (al)
- 1 http://www.nongnu.org/cvs/
- 2 http://www.nongnu.org/cvs/
- 3 http://www.tortoisecvs.org/
- 4 http://developer.apple.com/tools/xcode/
- 5 http://eclipse.org
- 6 http://netbeans.org
- 7 http://www.gnu.org/software/emacs/
- 8 http://www.linuxdevcenter.com/pub/a/linux/2002/01/03/cvs_intro.html
- 9 http://tldp.org/REF/CVS-BestPractices/html/index.html
- 10 http://www.pushok.com/soft_svn_vscvs.php
- 11 http://developer.apple.com/internet/opensource/cvsoverview.html
- 12 http://subversion.tigris.org/
- 13 http://subversion.tigris.org/
- 14 http://code.google.com
- 15 http://tortoisesvn.tigris.org/
- 16 http://www.versionsapp.com/
- 17 http://developer.apple.com/tools/xcode/
- 18 http://subversion.tigris.org/
- 19 http://www.rubyrobot.org/tutorial/subversion-with-mac-os-x
- 20 http://codebetter.com/blogs/peter.van.ooijen/archive/2008/05/22/getting-started-with-subversion.aspx
- 21 http://www.thinkvitamin.com/features/design/subversion-for-designers
- 22 http://www.beanstalkapp.com/
- 23 http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients
- 24 http://svnkit.com/
- 25 http://github.com
- 26 http://git-scm.com/
- 27 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary
- 28 http://www.winehq.org/site/git
- 29 http://git.fedoraproject.org/git/
- 30 http://git.or.cz/gitwiki/GitProjects
- 31 http://github.com
- 32 http://github.com/rails
- 33 http://github.com/sstephenson/prototype/tree/master
- 34 http://github.com
- 35 http://en.wikipedia.org/wiki/Git_(software)
- 36 http://git.or.cz/gitwiki/GitSvnComparsion
- 37 http://www.kernel.org/pub/software/scm/git/docs/git-gui.html
- 38 http://www.selenic.com/mercurial/wiki/
- 39 http://www.selenic.com/mercurial/wiki/
- 40 http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial
- 41 http://www.selenic.com/mercurial/wiki/index.cgi/GUIClients
- 42 http://www.selenic.com/mercurial/wiki/index.cgi/UnderstandingMercurial
- 43 http://texagon.blogspot.com/2008/02/use-mercurial-you-git.html
- 44 http://bazaar-vcs.org/
- 45 http://bazaar-vcs.org/
- 46 http://bazaar-vcs.org/Workflows
- 47 http://bazaar-vcs.org/BzrSupport
- 48 http://bazaar-vcs.org/BzrPlugins
- 49 http://bazaar-vcs.org/3rdPartyTools
- 50 http://bazaar-vcs.org/
- 51 http://bazaar-vcs.org/Documentation
- 52 http://doc.bazaar-vcs.org/bzr.dev/en/mini-tutorial/index.html
- 53 http://bazaar-vcs.org/BzrMigration
- 54 http://bazaar-vcs.org/BzrVsGit
- 55 http://dev.libresource.org/
- 56 http://dev.libresource.org/
- 57 http://dev.libresource.org/
- 58 http://dev.libresource.org/home/doc/libresource-user-manual
- 59 http://www.versioncontrolblog.com/comparison/LibreSource%20Synchronizer/Subversion/index.html
- 60 http://monotone.ca/
- 61 http://venge.net/mtn-wiki/
- 62 http://www.venge.net/mtn-wiki/InterfacesFrontendsAndTools
- 63 http://qct.sourceforge.net/
- 64 http://meld.sourceforge.net/
- 65 http://pmpu.sharesource.org/
- 66 http://www.russellbeattie.com/blog/distributed-revision-control-systems-git-vs-mercurial-vs-svn
- 67 http://en.wikipedia.org/wiki/Revision_control
- 68 http://www.dribin.org/dave/blog/archives/2007/12/28/dvcs/