hgbook
diff en/ch09-hook.xml @ 700:d2aacc06e562
Add more paragraph IDs
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun May 03 20:27:28 2009 -0700 (2009-05-03) |
parents | ef53d025f410 |
children | 477d6a3e5023 |
line diff
1.1 --- a/en/ch09-hook.xml Thu Apr 23 22:24:02 2009 -0700 1.2 +++ b/en/ch09-hook.xml Sun May 03 20:27:28 2009 -0700 1.3 @@ -556,7 +556,7 @@ 1.4 role="hg-cmd">hg commit</command> again. 1.5 </para> 1.6 1.7 -&interaction.hook.ws.simple; 1.8 + &interaction.ch09-hook.ws.simple; 1.9 1.10 <para id="x_235">In this example, we introduce a simple <literal 1.11 role="hook">pretxncommit</literal> hook that checks for 1.12 @@ -569,6 +569,8 @@ 1.13 trailing whitespace cause problems. 1.14 </para> 1.15 1.16 + &ch09-check_whitespace.py.lst; 1.17 + 1.18 <para id="x_236">The above version is much more complex, but also more 1.19 useful. It parses a unified diff to see if any lines add 1.20 trailing whitespace, and prints the name of the file and the 1.21 @@ -581,7 +583,7 @@ 1.22 the saved commit message once you've corrected the problem. 1.23 </para> 1.24 1.25 -&interaction.hook.ws.better; 1.26 + &interaction.ch09-hook.ws.better; 1.27 1.28 <para id="x_237">As a final aside, note in the example above the use of 1.29 <command>perl</command>'s in-place editing feature to get rid