foozy@708: $ \textbf{cat check_bug_id} foozy@708: #!/bin/sh foozy@708: # check that a commit comment mentions a numeric bug id foozy@708: hg log -r $1 --template \{desc\} | grep -q "\textbackslash{}> .hg/hgrc} foozy@708: $ \textbf{echo a >> a} foozy@708: $ \textbf{hg commit -m 'i am not mentioning a bug id'} foozy@708: transaction abort! foozy@708: rollback completed foozy@708: abort: pretxncommit.bug_id_required hook exited with status 1 foozy@708: $ \textbf{hg commit -m 'i refer you to bug 666'} foozy@708: committed foozy@708: