>>605
KeywordExtension というのがあります。
「どのファイルの」「どんなキーワードを」「何にする」というのを指定できます。
http://www.selenic.com/mercurial/wiki/index.cgi/KeywordExtension

リポジトリ中のファイルにはキーワードが未展開で($Id$ とか)格納され、
ワーキングディレクトリに取り出すと展開型($Id: hoge.txt 2008/04/24 moge$ とか)に
なります。