$ cat .hg/hgrc [hooks] pretxncommit.lunghezza_messaggio = test `hg tip --template {desc} | wc -c` -ge 15 $ echo a > a $ hg add a $ hg commit -A -m 'Troppo breve.' transazione abortita! ripristino completato fallimento: l'hook pretxncommit.lunghezza_messaggio รจ terminato con codice di stato 1 $ hg commit -A -m 'Abbastanza lungo.'