Try our conversational search powered by Generative AI!

Andreas Ek
Mar 6, 2010
  6132
(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
Do not upgrade to EPiServer.CMS.Core 12.21.4 without reading this!

Todays update of EPiServer.CMS.Core 12.21.4 alters default sort order in an unexpected way, when you are working with muligple languages and have...

Tomas Hensrud Gulla | May 14, 2024 | Syndicated blog

Upgrade Optimizely CMS From v11 to v12

Why Upgrade? There are many improvements implemented in version 12, but most importantly is that the whole framework is migrated from .Net Framewor...

MilosR | May 13, 2024

Configured Commerce - Infrastructure Updates Ahoy!

I'm very happy to share an important milestone - we no longer have any customers in our legacy v1 environment!  This means that the Configured...

John McCarroll | May 10, 2024

A day in the life of an Optimizely Developer - Enabling Opti ID within your application

Hello and welcome to another instalment of A Day In The Life Of An Optimizely developer, in this blog post I will provide details on Optimizely's...

Graham Carr | May 9, 2024