$ echo 'commit.when = echo -n "date of commit: "; date' >> .hg/hgrc $ echo a >> a $ hg commit -m 'i have two hooks' committed