Mercurial on Windows

Coming from Git background, I started to use another famous distributed version control system mercurial for my job.

TortoiseHg is a good GUI tool for Mercurial though. Sometimes I prefer to use CLI. Not like Git Bash. To use hg with command line interface comfortably, I did following stuff.

1. Install posh-hg
https://github.com/JeremySkinner/posh-hg

2. Include ssh, ssh-agent, ssh-keygen etc in Path

$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"

That what I did for using hg in CLI.

3. Wanna let TortoiseHg to use ssh
add following information to mercurial.ini

[ui]
ssh = "C:\Program Files (x86)\Git\bin\ssh.exe"

then go to your project setting, change default as

[paths]
default = ssh://hg@bitbucket.org/

Reference:
https://github.com/JeremySkinner/posh-hg
http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx


					
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s