Table of Contents |
TortoiseHg and Mercurial installer builder for Windows
The thg-winbuild scripts build against Python 2.6 and PyQt 4.7 or later. All C and C++ code is compiled with the VC9 compiler that comes with the gratis Microsoft Windows SDK for Windows 7 or Microsoft Visual C++ Compiler for Python 2.7.
MinGW is not used anymore.
Pre-built packages are available from the Downloads tab.
Package Naming Conventions
|= package name |= explanation | | mercurial-A.B.C.exe | Mercurial release version A.B.C, InnoSetup based installer | | mercurial-A.B.C.msi | Mercurial release version A.B.C, WiX based MSI installer | | mercurial-x.y.x.win32-py2.N.exe | Mercurial Python package for Python 2.N | | mercurial-stable-A.B.C.msi | Mercurial stable branch nightly build | | mercurial-dev-A.B.C.msi | Mercurial 'default' branch nightly build | | tortoisehg-A.B.C-x86.msi | TortoiseHg release version A.B.C for x86 arch PCs | | tortoisehg-A.B.C-x64.msi | TortoiseHg release version A.B.C for x64 arch PCs | | tortoisehg-stable-A.B.C.D-x86-{bhash}.msi | TortoiseHg stable branch nightly build, for x86 | | tortoisehg-stable-A.B.C.D-x64-{bhash}.msi | TortoiseHg stable branch nightly build, for x64 | | tortoisehg-dev-A.B.C.D-x86-{bhash}.msi | TortoiseHg 'default' branch nightly build, for x86 | | tortoisehg-dev-A.B.C.D-x64-{bhash}.msi | TortoiseHg 'default' branch nightly build, for x64 |
The {bhash} is a unique hash for the build run. This string isn't particularly interesting to the end-user, but it helps us to generate unique filenames every time we run the auto build scripts.
Nightly build version numbers
For nightly build packages, the 'C' and 'D' terms of the version is encoded as: VMMM
- V - most recent minor release number (may be missing, if zero)
- MMM - count of new changesets since last tagged release plus 100 for the stable branch nightlies or plus 500 for default branch (aka "unstable") nightlies (see )
Whereas for TortoiseHg nightlies, the 'C' term encodes the exact TortoiseHg version used and the 'D' term encodes the Mercurial version that was included.
Examples:
If you download an MSI package and look at its properties, you should see the actual changeset hashes that were used to build that particular package (look for the //"Comments"// property in the //"Details"// tab, which for example reads //"Installs TortoiseHg 2.0.3+183-774d4419f199, Mercurial 1.8.2+139-98f79a5c3086 on x64"//). Once installed, entering 'thg version' and/or 'hg version' on the command line will also tell you the exact tag or changeset hashes.
Building your own packages
To use thg-winbuild to build your own Mercurial or TortoiseHg packages or to simply build the THG docs, hg clone https://bitbucket.org/tortoisehg/thg-build to your Windows machine, cd into the winbuild subrepo and carefully follow the instructions in README.txt.