view en/examples/hook.msglen.go.out @ 282:7a6bd93174bd

Update bisect docs
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 31 Dec 2007 20:06:58 -0800
parents 00f69e8825c5
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'}
transaction abort!
rollback completed
abort: pretxncommit.msglen hook exited with status 1
$ \textbf{hg commit -A -m 'long enough'}