changeset 1626:fdeeba6c6d09

Add support for mercurial revisions in addition to subversion on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Mar 2012 02:28:55 +0000
parents 50856987e794
children b41ecd439b47
files makefile.vc
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/makefile.vc	Wed Mar 28 02:14:38 2012 +0000
+++ b/makefile.vc	Wed Mar 28 02:28:55 2012 +0000
@@ -57,6 +57,15 @@
 !include SVN.REV
 !message Revision is [$(VERREV)]
 SVNVERSION=-DVER_REV=$(VERREV)
+!else
+
+# Check the Mercurial revision number if possible
+!if ![hg log -r . --template="VER_REV={rev}" > HG.REV]
+!include HG.REV
+!message Revision is [$(VER_REV)]
+SVNVERSION=-DVER_REV=$(VER_REV)
+!endif
+
 !endif
 
 CC = cl