17 Feb
2009
17 Feb
'09
6:54 p.m.
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. Regards, Jeremy Henty