Mercurial > hgbook
view en/examples/hook.msglen @ 113:a0f57b3e677e
More concepts, this time working directory stuff.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 13 Nov 2006 14:32:16 -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'