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