Mercurial > hgbook
view en/examples/hook.msglen @ 137:9d7dffe74b2c
Save "good" example output so we can see if something has broken.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 05 Mar 2007 23:56:30 -0800 |
parents | 18210d46491f |
children | 914babdc99c8 |
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: run cat .hg/hgrc echo a > a hg add a hg commit -A -m 'too short' hg commit -A -m 'long enough'