vcsinfo
VCS Information Generator tool
Allows to generate source code for your project's VCS (Version Control System) status.
Include this tool into your pre-build step to hardcode version strings.
vcsinfo.exe - 64-bit build.
vcsinfo32.exe - 32-bit build.
Currently supported:
Inputs: Mercurial (hg)
Outputs: C, C++
Planned: SVN, Git; Java
USAGE EXAMPLES:
Generate C header file for Mercurial repository using pipes.
hg summary | vcsinfo > version.h
Generate C++ header file for Mercurial repository in v1.x...