On Tue, Feb 17, 2009 at 05:54:17PM +0000, Jeremy Henty wrote:
On Tue, Feb 17, 2009 at 06:40:01PM +0100, Joerg Sonnenberger wrote:
Please ensure that this is not part of releases and/or if the .hg directory is missing.
It already does this. If you are not in a Mercurial repository (or if Mercurial is not installed) then the "if hg id ..." test fails and HG is #defined to 0 instead of 1. The extra logging code is wrapped in a "#if HG" so it will be removed by the preprocessor. I just tested this by temporarily renaming .hg and rebuilding and it worked as intended.
Point is, release build should never differ whether hg is installed or not. I know that hg does the check internally, but that also depends on that no other hg binary can be found. Joerg