My Mercurial Workflow « IT Management, Web Development

McLaughlin Casey "My Mercurial Workflow." Casey A. McLaughlin's Weblog. Posted 22 Nov 2010. Retrieved 21 May 2012(http://www.caseymclaughlin.com/2010/11/my-mercurial-workflow/)

Where does VCS fit in here?About a year ago, I wrote an article on this website about Version Control.  In that article, I touted the glory of Subversion, and mentioned:

“I’ve since tried other VCS systems like MercurialGit, and Bazaar, but have not found any compelling reason to switch.”

Well, I’ve since found my compelling reasons to switch.  SVN lost some of our files, and it was a pain to do all sorts of stuff (get setup, keep clean, branch, merge, etc).  I won’t get into; there are enough rants about Subversion on the ‘net already.  We use Mercurial now, and boy has our workflow improved.

Mercurial is my new favorite child, because it’s easy to setup, easy to use, easy to branch and merge, and easy to teach to my students.  Oh, and it just works.  Sometimes I think it runs off magic.

In order to help my colleagues make the transition from SVN to Hg, I came up with a few diagrams to explain the workflow.  I thought I’d share them here.

Mercurial Recipe for Success

You will Need:
  1. Mercurial.  Grab and install it from the official site.
  2. Your files.  You know, all of those css, html, and php files that you’ve been working so hard on.
  3. A repository server.  If you don’t have one, go get a free account at Bitbucket.
  4. A web server.  Install Mercurial here too.
The Workflow:
Diagram showing steps to setup a Mercurial Repository

Setting up a Mercurial Repository

Diagram showing day-to-day Hg Workflow

Day-to-Day Developer Workflow

Comments

One Response to “My Mercurial Workflow”
  1. Hans Meyer says:

    Excellent article, Casey.

Speak Your Mind

Add a comment below...
and oh, if you want a pic to show with your comment, go get a gravatar!

Better Tag Cloud