Mercurial > hgbook
comparison en/hook.tex @ 412:a168daed199b
Fix typos
author | Simon Ruderich <simon@ruderich.org> |
---|---|
date | Tue, 26 Aug 2008 13:55:04 -0700 |
parents | 814698eebbaf |
children | 97e929385442 |
comparison
equal
deleted
inserted
replaced
411:5561812fc5c9 | 412:a168daed199b |
---|---|
239 \caption{A simple hook that runs when a changeset is committed} | 239 \caption{A simple hook that runs when a changeset is committed} |
240 \label{ex:hook:init} | 240 \label{ex:hook:init} |
241 \end{figure} | 241 \end{figure} |
242 | 242 |
243 All hooks follow the pattern in example~\ref{ex:hook:init}. You add | 243 All hooks follow the pattern in example~\ref{ex:hook:init}. You add |
244 an entry to the \rcsection{hooks} section of your \hgrc\. On the left | 244 an entry to the \rcsection{hooks} section of your \hgrc. On the left |
245 is the name of the event to trigger on; on the right is the action to | 245 is the name of the event to trigger on; on the right is the action to |
246 take. As you can see, you can run an arbitrary shell command in a | 246 take. As you can see, you can run an arbitrary shell command in a |
247 hook. Mercurial passes extra information to the hook using | 247 hook. Mercurial passes extra information to the hook using |
248 environment variables (look for \envar{HG\_NODE} in the example). | 248 environment variables (look for \envar{HG\_NODE} in the example). |
249 | 249 |