view en/examples/hook.msglen.run.out @ 155:914babdc99c8

run-example: better error if bogus section name found. Fix all such bogus names in sources.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 12 Mar 2007 23:10:32 -0700
parents 006bbad1f190
children
line wrap: on
line source

$ \textbf{cat .hg/hgrc}
[hooks]
pretxncommit.msglen = test `hg tip --template \{desc\} | wc -c` -ge 10
$ \textbf{echo a > a}
$ \textbf{hg add a}
$ \textbf{hg commit -A -m 'too short'}
abort: pretxncommit.msglen hook exited with status 1
transaction abort!
rollback completed
$ \textbf{hg commit -A -m 'long enough'}