Friday, March 4, 2011

Blog Post: My Experience Migrating to TortoiseHg 2.0

Late in 2010 I wanted to try the Distributed Revision Control and began by picking Mercurial and starting a project on Google Code. I chose Mercurial instead of Git because from what I was reading at the time Mercurial seemed to be simpler and had better integration with Windows. That Windows integration for me took the form of using TortoiseHg. My experience has been very positive so far, and I am considering moving my CodePlex projects from TFS to Mercurial in the future.

A few days ago, a new version of TortoiseHg has been available and I wanted to share my experiences in upgrading from TortoiseHg 1.1.7 to TortoiseHg 2.0.

Downloading TortoiseHg 2.0

You can get download the binaries from here: http://tortoisehg.bitbucket.org/ . Please do be aware that you?ll need to download a specific installer depending on whether you have an x86 or x64 bit Windows OS.

SNAGHTML82e34e0

 

Installation Notes

I uninstalled TortoiseHg 1.1.7 first. For some reason it claimed I needed to reboot ? irritating but OK. I rebooted. Then I installed TortoiseHg 2.0. Nothing surprising in the install. Screenshots below.

image

Install

image

 

image

 

image

image

 

image

 

image

 

Getting the Overlay Icons to Show

After installing, the overlay status icons we no longer visible in my repository. I rebooted and the icons then appeared.

image

 

The TortoiseHg 2.0 User Experience

Here are a few screenshots. Key things to notice is the new ?TortoiseHg Workbench?

image

image

image

 

Overcoming Initial Problems in Pulling and Pushing

Of course, the first thing I tried was to click on the Pull icon in the Sync UI. Surprisingly this did not ?Just Work?

Instead I received an error about a ?nonumeric port?

% hg --repository D:\saveenr\code\google_code\saveenr pull --verbose https://saveenr@gmail.com:***@saveenr.googlecode.com/hg/
URLError: nonnumeric port: 'MYPASSWORD@saveenr.googlecode.com'
[command returned code 255 Fri Mar 04 01:35:17 2011]

For an experienced Mercurial user, this may be very obvious but for a novice such as myself this was rather confusing. After a few minutes of experimentation I resolved this by clicking on the Lock Icon ?

image

And then setting the security options to this?

SNAGHTMLe89c8

After that, pushes and pulls worked perfectly.

 

Reference: Screenshots from TortoiseHg 1.1.7

To help you see the difference in the new version below are some screenshots from the previous version I had installed.

SNAGHTML8296f7f

SNAGHTML82b09f9

SNAGHTML82bd12e

Natasha Bedingfield Audrina Patridge Simone Mütherthies Carrie Underwood Rosario Dawson

No comments:

Post a Comment