Mercurial on Windows: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Added MozillaBuild as install option)
(Fixed path to Mercurial.ini file.)
 
(2 intermediate revisions by one other user not shown)
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.
Dump your comments in this page's discussion, aka talk (http://wiki.mozilla.org/Talk:Mercurial_on_Windows). 


Mercurial is part of [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#MozillaBuild MozillaBuild] 1.3. [http://mercurial.berkwood.com/ Binary installers for Windows] exist; '''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:  
Mercurial is part of [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#MozillaBuild MozillaBuild] 1.3. [http://mercurial.berkwood.com/ Binary installers for Windows] exist; '''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:  
Line 10: Line 12:
If you want to make <tt>hg view</tt> work:
If you want to make <tt>hg view</tt> work:
* [http://www.activestate.com/store/activetcl/download/ install ActiveTcl], and make sure you tell it to associate .tcl with ActiveTcl
* [http://www.activestate.com/store/activetcl/download/ install ActiveTcl], and make sure you tell it to associate .tcl with ActiveTcl
* add the <tt>hgk</tt> extension to your list of extensions in ~/Mercurial.ini, e.g to your [extensions] block add the line:
* add the <tt>hgk</tt> extension to your list of extensions in C:\mozilla-build\hg\Mercurial.ini, e.g to your [extensions] block add the line:
  hgext.hgk =
  hgext.hgk =



Latest revision as of 06:30, 11 October 2008

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

Dump your comments in this page's discussion, aka talk (http://wiki.mozilla.org/Talk:Mercurial_on_Windows).

Mercurial is part of MozillaBuild 1.3. Binary installers for Windows exist; 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 C:\mozilla-build\hg\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.