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