Mercurial on Windows: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Just a dumping ground for now; will get more structure later.
Just a dumping ground for now; will get more structure later.


[http://mercurial.berkwood.com/ Binary installers for Windows] exist; you probably want 0.9.4, or some newer released versions.  I had problems with the latest 0.9.4+ snapshot. Now there are two other installers:  
[http://mercurial.berkwood.com/ Binary installers for Windows] exist; you probably want 0.9.4, or some newer released versions ('''you want 1.0 or newer''', see [http://developer.mozilla.org/en/docs/Mercurial_basics this link for more info]).  I had problems with the latest 0.9.4+ snapshot. Now there are two other installers:  
[http://qct.sourceforge.net/Mercurial-BI.html Batteries Included] installer newly with [http://tortoisehg.sourceforge.net/ TortoiseHG] and the
[http://qct.sourceforge.net/Mercurial-BI.html Batteries Included] installer newly with [http://tortoisehg.sourceforge.net/ TortoiseHG] and the
[http://qct.sourceforge.net/Mercurial-NSI.html Python Approach] installer.
[http://qct.sourceforge.net/Mercurial-NSI.html Python Approach] installer.

Revision as of 18:27, 15 May 2008

Just a dumping ground for now; will get more structure later.

Binary installers for Windows exist; you probably want 0.9.4, or some newer released versions (you want 1.0 or newer, see this link for more info). I had problems with the latest 0.9.4+ snapshot. Now there are two other installers: Batteries Included installer newly with TortoiseHG and the Python Approach installer. Some reasoning behind the different binary installers for Windows.

In general, things will just work (assuming the Mercurial dir is in your path); there are some oddities with line endings here and there (e.g. hg export will use DOS line endings in the generated patch, while MQ-generated patches don't).

If you want to make hg view work:

  • install ActiveTcl, and make sure you tell it to associate .tcl with ActiveTcl
  • add the hgk extension to your list of extensions in ~/Mercurial.ini, e.g to your [extensions] block add the line:
hgext.hgk =
  • grab hgk from here (this is a link to a snapshot in the crew repo; there may be newer ones, but the Windows installer does not have hgk packaged). Save this file somewhere in your path, and rename it to hgk.tcl.
  • in your Mercurial.ini, add:
[hgk]
path=C:\Users\vladimir\bin\hgk.tcl

and hg view should work.