Automatic version control in source files for Mercurial DVCS

Based on Mercurial extension
This extension allows the expansion of RCS/CVS-like and user defined keys in text files tracked by Mercurial.

Modify/add to your $PROJECT$/.hg/hgrc

[extensions]
keyword =
[keyword]
**.c=
**.h=
ignore_dir\**.* = ignore
[keywordmaps]
Tree = {branch}
HGdate = {date|rfc822date}
Project maintainers = {author}
Id = {file} | Rev {rev} {changelog} | {date|utcdate} {author|user}
Revision = {node|short}

By using this mercurial will automatically look for headers in commited files and automatically modify to result like this:

/******************************************************************************
/* $Id: fw/system/i2c.c | Rev 26 | 2014/03/06 09:52:46 xdevs $
/* $Project maintainers: xdevs.com $
/* $Revision: f669b607dcd1 $
/* $Tree: default $
/*
/* I2C Driver
/* Copyright © 2010-2014, xDevs.com Microcontroller Software Support
/* IAR ARM 6.5 | LPC11U38FBD64/501
/*
/*/

http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html

Add color in wiki

%{color:red}red% result is red

%{color:#ffee33}ffee33% result is ffee33

Author: Ilya Tsemenko
Created: Sept. 9, 2014, 5:45 a.m.
Modified: Sept. 17, 2014, 9:39 p.m.

References