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
Projects like this are born from passion and a desire to share how things work. Education is the foundation of a healthy society - especially important in today's volatile world. xDevs began as a personal project notepad in Kherson, Ukraine back in 2008 and has grown with support of passionate readers just like you. There are no (and never will be) any ads, sponsors or shareholders behind xDevs.com, just a commitment to inspire and help learning. If you are in a position to help others like us, please consider supporting xDevs.com’s home-country Ukraine in its defense of freedom to speak, freedom to live in peace and freedom to choose their way. You can use official site to support Ukraine – United24 or Help99. Every cent counts.
Modified: Sept. 17, 2014, 9:39 p.m.