Table of Contents

Successor to CVS? Subversion ain't it!

For the non-Eclipse-committers out there, there's been an interesting conversation proceeding on the committer mailing list. Since it's off-topic for the list, I'm replying on my blog.

On the mailing list, the question was:

If SVN is a poor substitute for CVS, what should we use instead?

The answers ranged from:

Recently, I had to deal with this too

A year and a bit ago, I contracted with a company that does not allow SSH through the firewall. So I was in the market for something that:

It turns out that with only minor caveats, Mercurial fits all of these qualities today for the work that I do.

Version control over HTTP

Mercurial can expose a repository through a regular HTTP web page using CGI or Fast-CGI. It uses regular old HTTP post, so if the site is accessible, version control Just Works. The same web site that exposes version control also automatically doubles as a ViewVC-style web interface to the repository. Sweet.

This makes server-side security really easy too, since you can use HTTPS and Apache authentication to secure the repository and don't have to give out full SSH logins to people you barely know.

Has a decent Eclipse plugin

When I started, Mercurial's plugin was usable, but barely so. Today, it is fully featured, but needs another 3 months of hard usage in the wild to get all the last niggling bugs out.

But I've been amazed at how quickly the Mercurial Eclipse plugin has progressed. It's really a nice piece of software and I trust it with my day-to-day work now.

Has traction, particularly in the Java community

Mercurial is the only distributed version control system to be widely used for large Java projects. In particular, the large Sun Microsystems open source projects like OpenJDK and NetBeans now use Mercurial.

Outside of the Java space, Mozilla.org has standardized on Mercurial for their version control.

With large customers like these, we can be assured that Mercurial will be well-supported for years to come.

Is well supported across all Java developers' OSs

Mercurial is one of the few distributed version control systems that runs as well on Windows as on Unix-based operating systems. Since the vast majority of Eclipse users run Windows, this is important.

How has it gone?

Over the past 6-9 months, I've been using Mercurial more and more exclusively for new development.

Conclusion

Someone will ask, “Why not Git, or some other DVCS?”

The answer is simple:

  1. To my knowledge, Mercurial is the only DVCS with a mature Eclipse plugin.
  2. Mercurial is the only DVCS used widely on very large Java open-source projects.

For this developer, Mercurial has proven to be everything I've wanted in the near term. From what I've seen so far, I could also imagine it being a good choice for Eclipse in the long term.

~~LINKBACK~~ ~~DISCUSSION:closed~~