view en/examples/hook.simple.init.out @ 548:9b3cc9f398f9

Finished MQ chapter translation Added translation term fold
author Igor TAmara <igor@tamarapatino.org>
date Sat, 13 Dec 2008 12:23:51 -0500
parents 006bbad1f190
children
line wrap: on
line source

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