hgbook
diff en/examples/results/hook.simple.pretxncommit.out @ 598:7893b3824715
Add a top-level index page.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri Mar 27 00:01:58 2009 -0700 (2009-03-27) |
parents | 44d1363234d2 |
children | 4432ad34b8e5 |
line diff
1.1 --- a/en/examples/results/hook.simple.pretxncommit.out Mon Mar 09 21:37:47 2009 -0700 1.2 +++ b/en/examples/results/hook.simple.pretxncommit.out Fri Mar 27 00:01:58 2009 -0700 1.3 @@ -1,13 +1,14 @@ 1.4 -$ \textbf{cat check_bug_id} 1.5 +<screen><prompt>$</prompt> <userinput>cat check_bug_id</userinput> 1.6 #!/bin/sh 1.7 # check that a commit comment mentions a numeric bug id 1.8 -hg log -r $1 --template \{desc\} | grep -q "\textbackslash{}<bug *[0-9]" 1.9 -$ \textbf{echo 'pretxncommit.bug_id_required = ./check_bug_id $HG_NODE' >> .hg/hgrc} 1.10 -$ \textbf{echo a >> a} 1.11 -$ \textbf{hg commit -m 'i am not mentioning a bug id'} 1.12 +hg log -r $1 --template {desc} | grep -q "\<bug *[0-9]" 1.13 +<prompt>$</prompt> <userinput>echo 'pretxncommit.bug_id_required = ./check_bug_id $HG_NODE' >> .hg/hgrc</userinput> 1.14 +<prompt>$</prompt> <userinput>echo a >> a</userinput> 1.15 +<prompt>$</prompt> <userinput>hg commit -m 'i am not mentioning a bug id'</userinput> 1.16 transaction abort! 1.17 rollback completed 1.18 abort: pretxncommit.bug_id_required hook exited with status 1 1.19 -$ \textbf{hg commit -m 'i refer you to bug 666'} 1.20 +<prompt>$</prompt> <userinput>hg commit -m 'i refer you to bug 666'</userinput> 1.21 committed 1.22 1.23 +</screen>