Call for testing: hackable Mercurial for Windows

Angel Ezquerra angel.ezquerra at
Thu Oct 20 17:53:27 CDT 2011

On Fri, Oct 21, 2011 at 12:23 AM, Adrian Buehlmann <adrian at> wrote:
> On 2011-10-21 00:00, David Golub wrote:
>> 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 from a command prompt.  Everything should
>> build without a problem.
>> David Golub
> There's also my recipe for preparing a thg build machine
> (We've told Angel a couple of times already ;-)

Jajaja! :-)

I think Adrian's message is further proof that Matt's idea is great.
Adrian has been very graciously trying to help me to setup my machine
to be able to build mercurial on windows for ages. Yet I never really
got round to do so. The main reason is that it is (was?) a complicated
process. Every time I wanted to do it I would find some excuse to do
something more fun, such as doing some actual coding on TortoiseHg or
playing with my kid! :-)

Hopefully now I won't ever need to go through that process, which
would mean that my laziness has finally paid off, as it usually does

BTW, I want to thank Adrian again for trying to help me with this so many times!


More information about the Mercurial-devel mailing list