Call for testing: hackable Mercurial for Windows

David Golub golubdr at gmail.com
Thu Oct 20 17:00:44 CDT 2011


I've been building Mercurial with TortoiseHg on Windows in order to do
TortoiseHg development, and it's been fairly simple.  You just need install
Python (either 32-bit or 64-bit, depending on what you want) along with the
Windows SDK for Windows 7 and .NET Framework 3.5.  It needs to be that exact
version, not that version or later.  For TortoiseHg development, you need
py2exe and pywin32, but I'm pretty sure that Mercurial alone can be built
without these.  The one snag that I hit is that the SDK is missing the
vcvarsall.bat file in the Visual Studio directory, so you need to write a
batch file to call either vcvars32.bat or vcvars64.bat, depending on whether
you want a 32-bit or 64-bit build.  Once that's in place, just check out the
Mercurial source and run setup.py from a command prompt.  Everything should
build without a problem.

David Golub

-----Original Message-----
From: mercurial-devel-bounces at selenic.com
[mailto:mercurial-devel-bounces at selenic.com] On Behalf Of Angel Ezquerra
Sent: Thursday, October 20, 2011 4:56 PM
To: Matt Mackall
Cc: mercurial-devel
Subject: Re: Call for testing: hackable Mercurial for Windows

On Wed, Oct 19, 2011 at 3:31 AM, Matt Mackall <mpm at selenic.com> wrote:
> In an effort to get more Windows people hacking on Mercurial, I've 
> built a proof-of-concept package here:
>
> http://selenic.com/hg-2.0-rc-hackable.zip (~50MB)
>
> that contains:
>
> - private copy of Python 2.6.6 (32-bit)
> - complete Mercurial history
> - pre-compiled extensions (32-bit MinGW gcc 4.6.1)
> - hg.exe wrapper to add to your path
> - in-place editable source checked out and ready to go
>
> You should be able to unzip this into a directory and start hacking on 
> Mercurial immediately without affecting your existing Python or 
> Mercurial installations. Because it contains the actual Mercurial 
> repo, you should also be able to immediately pull and update to the 
> latest development versions (until the extensions need recompiling).
>
> Please give it a spin!

I gave this a try and it works great! This will make hacking on mercurial so
much easier for us windows users!

Angel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel at selenic.com
http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list