bos@49: #!/bin/sh
bos@49: 
bos@49: hg init a
bos@49: cd a
bos@49: echo '[hooks]' > .hg/hgrc
bos@49: echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc
bos@49: 
bos@155: #$ name: go
bos@49: 
bos@49: cat .hg/hgrc
bos@49: echo a > a
bos@49: hg add a
bos@49: hg commit -A -m 'too short'
bos@49: hg commit -A -m 'long enough'