view en/examples/hook.msglen @ 618:a529952fce96

changed "un tag" to "una etiqueta". Same thing for "unos tags" "un tag" "el tag" "los tags" "de tag" "de tags"
author Javier Rojas <jerojasro@devnull.li>
date Sun, 18 Jan 2009 22:21:43 -0500
parents 914babdc99c8
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'