hgbook
annotate es/examples/hook.msglen @ 985:ac738e7a6bf9
corrected one spelling mistake in fr/appA-svn.xml
author | Frédéric Bouquet <youshe.jaalon@gmail.com> |
---|---|
date | Wed Sep 09 15:15:48 2009 +0200 (2009-09-09) |
parents | |
children |
rev | line source |
---|---|
igor@333 | 1 #!/bin/sh |
igor@333 | 2 |
igor@333 | 3 hg init a |
igor@333 | 4 cd a |
igor@333 | 5 echo '[hooks]' > .hg/hgrc |
igor@333 | 6 echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc |
igor@333 | 7 |
igor@333 | 8 #$ name: go |
igor@333 | 9 |
igor@333 | 10 cat .hg/hgrc |
igor@333 | 11 echo a > a |
igor@333 | 12 hg add a |
igor@333 | 13 hg commit -A -m 'too short' |
igor@333 | 14 hg commit -A -m 'long enough' |