hgbook
diff fr/examples/hook.msglen @ 921:547d3aa25ef0
Initial copy from the english version, added package for french input.
author | Romain PELISSE <romain.pelisse@atosorigin.com> |
---|---|
date | Thu Feb 05 12:37:03 2009 +0100 (2009-02-05) |
parents | en/examples/hook.msglen@914babdc99c8 |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fr/examples/hook.msglen Thu Feb 05 12:37:03 2009 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +hg init a 1.7 +cd a 1.8 +echo '[hooks]' > .hg/hgrc 1.9 +echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc 1.10 + 1.11 +#$ name: go 1.12 + 1.13 +cat .hg/hgrc 1.14 +echo a > a 1.15 +hg add a 1.16 +hg commit -A -m 'too short' 1.17 +hg commit -A -m 'long enough'