Andreas Ek
Mar 6, 2010
  5694
(0 votes)

Mercurial

Emil Cardell opened my eyes to a Distributed Version Control System called Mercurial. Its really awesome!
Mercurial (or HG in abbreviation) is an open-source DVCS. Everything in this blog post is downloadable for free.
A competitor to HG is Git.

Yes, of course, you are kind of brain damaged by TFS and SubVersion so perhaps its hard to try something else ;-) But I will get you some keys why you should.

Note! Read the following guide to get a introduced to HG: http://hginit.com/.

The base site for Mercurial is http://mercurial.selenic.com/ and you could get education via http://hgbook.red-bean.com/ but…
I suggest that you skip the links and go directly to the main tool for Windows, TortoiseHG. It will install the Mercurial base system to your computer and wont force you into cryptic commands.

vt_history

TortoiseHG works similar to Tortoise for SubVersion with Explorer integration. Its possible to get a plugin to VS with http://sharesource.org/project/visualhg/.

VS

Your project is file based and HG only save files. You create a repository in your explorer and starts adding files to it. When you are done coding you commit your changes to the code base. When its time to share your changes you make a synchronization to a clone of the code base repository. You could choose a hosted repository or just make a file copy if you want to. My first HG-project used DropBox to share the common repository and it worked just fine.

00-hg
After a while you get conflicts between your and your colleges changes and the changesets needs to be merged. With TortoiseHG you get a visual map over resent changes.

HGTrack 

In this case its really easy but the graphical view gives you an advantage.

The conflicts is solved automatically or by hand with a text-diff-tool included. Don’t you worry, you will make it!

This is why you should consider HG:

  • A different view of revisions and merges
  • Support large development teams
  • Easy-to-use and great -tools
  • No central version control system needed and supports loosely coupled developer teams
  • No more fear for checking in code, if its bad the other team members just will ignore you ;-)
  • Supported by CodePlex and TeamCity
  • Its free

It would be nice to hear your opinion!

Mar 06, 2010

Comments

Please login to comment.
Latest blogs
Fixing Optimizely Content Syncing/Caching Issues on the DXP pre CMS.Core 12.13.0

Hi all, With our recent deployments to the DXP for .NET 6 projects (one a new build and one an upgrade) our clients had raised issues where there...

Scott Reed | Mar 23, 2023

Handle hostnames, schedule jobs and role access when synchronizing content

The Environment Synchronizer module helps you to set your environment into a known state after synchronizing databases between environments. In thi...

Ove Lartelius | Mar 23, 2023 | Syndicated blog

4 tips and tricks for Hangfire on Optimizely CMS

Here are four useful tricks I always apply to any site where I use Hangfire (code included).

Stefan Holm Olsen | Mar 21, 2023 | Syndicated blog

The new LinkItem property in Optimizely CMS, and why it matters

In the past, we have used different tricks to achieve this. Now, the LinkItem property is finally built-in in Optimizely CMS 12!

Tomas Hensrud Gulla | Mar 20, 2023 | Syndicated blog