# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1332901735 0 # Node ID fdeeba6c6d09dfcd15421dfbf24bf17080149816 # Parent 50856987e7948e0f0b6d17e102d97fbe2ca5e78b Add support for mercurial revisions in addition to subversion on Windows. diff -r 50856987e794 -r fdeeba6c6d09 makefile.vc --- 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