hgbook

diff en/ch10-hook.xml @ 567:8fcd44708f41

Uncomment all the mangled interaction examples.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Mar 09 23:22:09 2009 -0700 (2009-03-09)
parents 21c62e09b99f
children 13513d2a128d
line diff
     1.1 --- a/en/ch10-hook.xml	Thu Mar 05 21:52:23 2009 +0200
     1.2 +++ b/en/ch10-hook.xml	Mon Mar 09 23:22:09 2009 -0700
     1.3 @@ -354,7 +354,7 @@
     1.4  
     1.5      <para>All hooks follow the pattern in this example.</para>
     1.6  
     1.7 -<!-- &interaction.hook.simple.init; -->
     1.8 +&interaction.hook.simple.init;
     1.9  
    1.10      <para>You add an entry to the <literal
    1.11  	role="rc-hooks">hooks</literal> section of your <filename
    1.12 @@ -371,7 +371,7 @@
    1.13        <para>Quite often, you will want to define more than one hook
    1.14  	for a particular kind of event, as shown below.</para>
    1.15  
    1.16 -<!-- &interaction.hook.simple.ext; -->
    1.17 +&interaction.hook.simple.ext;
    1.18  
    1.19        <para>Mercurial lets you do this by adding an
    1.20  	<emphasis>extension</emphasis> to the end of a hook's name.
    1.21 @@ -438,7 +438,7 @@
    1.22  	<literal role="hook">commit</literal> hook is not run.
    1.23        </para>
    1.24  
    1.25 -<!-- &interaction.hook.simple.pretxncommit; -->
    1.26 +&interaction.hook.simple.pretxncommit;
    1.27  
    1.28        <para>The hook in the example above checks that a commit comment
    1.29  	contains a bug ID.  If it does, the commit can complete.  If
    1.30 @@ -621,7 +621,7 @@
    1.31  	changeset with a message that is less than ten bytes long.
    1.32        </para>
    1.33  
    1.34 -<!-- &interaction.hook.msglen.go; -->
    1.35 +&interaction.hook.msglen.go;
    1.36  
    1.37      </sect2>
    1.38      <sect2>
    1.39 @@ -665,7 +665,7 @@
    1.40  	  role="hg-cmd">hg commit</command> again.
    1.41        </para>
    1.42  
    1.43 -<!-- &interaction.hook.ws.simple; -->
    1.44 +&interaction.hook.ws.simple;
    1.45  
    1.46        <para>In this example, we introduce a simple <literal
    1.47  	  role="hook">pretxncommit</literal> hook that checks for
    1.48 @@ -690,7 +690,7 @@
    1.49  	the saved commit message once you've corrected the problem.
    1.50        </para>
    1.51  
    1.52 -<!-- &interaction.hook.ws.better; -->
    1.53 +&interaction.hook.ws.better;
    1.54  
    1.55        <para>As a final aside, note in the example above the use of
    1.56  	<command>perl</command>'s in-place editing feature to get rid