bos@144: $ \textbf{hg init hook-test} bos@144: $ \textbf{cd hook-test} bos@144: $ \textbf{echo '[hooks]' >> .hg/hgrc} bos@144: $ \textbf{echo 'commit = echo committed $HG_NODE' >> .hg/hgrc} bos@144: $ \textbf{cat .hg/hgrc} bos@144: [hooks] bos@144: commit = echo committed $HG_NODE bos@144: $ \textbf{echo a > a} bos@144: $ \textbf{hg add a} bos@144: $ \textbf{hg commit -m 'testing commit hook'} bos@144: committed