bos@144: $ \textbf{cat .hg/hgrc} bos@144: [hooks] bos@144: pretxncommit.msglen = test `hg tip --template \{desc\} | wc -c` -ge 10 bos@144: $ \textbf{echo a > a} bos@144: $ \textbf{hg add a} bos@144: $ \textbf{hg commit -A -m 'too short'} bos@144: abort: pretxncommit.msglen hook exited with status 1 bos@144: transaction abort! bos@144: rollback completed bos@144: $ \textbf{hg commit -A -m 'long enough'}