Mercurial > hgbook
comparison es/examples/hook.msglen @ 432:04c08ad7e92e
Translated svgs dummy .tex towards building
author | Igor TAmara <igor@tamarapatino.org> |
---|---|
date | Sat, 18 Oct 2008 07:48:21 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
431:d13a05515acf | 432:04c08ad7e92e |
---|---|
1 #!/bin/sh | |
2 | |
3 hg init a | |
4 cd a | |
5 echo '[hooks]' > .hg/hgrc | |
6 echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc | |
7 | |
8 #$ name: go | |
9 | |
10 cat .hg/hgrc | |
11 echo a > a | |
12 hg add a | |
13 hg commit -A -m 'too short' | |
14 hg commit -A -m 'long enough' |