Mercurial > hgbook
view ja/examples/hook.msglen @ 836:d819bc2414f4
add figs/bad-merge-*.dot.
a part of 7226e5e750a6.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 23 Jul 2009 18:10:58 +0900 |
parents | b0db5adf11c1 |
children |
line wrap: on
line source
#!/bin/sh hg init a cd a echo '[hooks]' > .hg/hgrc echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc #$ name: go cat .hg/hgrc echo a > a hg add a hg commit -A -m 'too short' hg commit -A -m 'long enough'