# HG changeset patch # User Bryan O'Sullivan # Date 1173766232 25200 # Node ID 914babdc99c8f0f8bc0940cf117d9a6bb6cb4510 # Parent e7f48702d4093a7cd4613dabed277c31e5a2deb2 run-example: better error if bogus section name found. Fix all such bogus names in sources. diff -r e7f48702d409 -r 914babdc99c8 en/examples/hook.msglen --- a/en/examples/hook.msglen Mon Mar 12 22:56:29 2007 -0700 +++ b/en/examples/hook.msglen Mon Mar 12 23:10:32 2007 -0700 @@ -5,7 +5,7 @@ echo '[hooks]' > .hg/hgrc echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc -#$ name: run +#$ name: go cat .hg/hgrc echo a > a diff -r e7f48702d409 -r 914babdc99c8 en/examples/mq.id --- a/en/examples/mq.id Mon Mar 12 22:56:29 2007 -0700 +++ b/en/examples/mq.id Mon Mar 12 23:10:32 2007 -0700 @@ -18,7 +18,7 @@ hg add other.c hg qrefresh -#$ name: out +#$ name: output hg qapplied hg log -r qbase:qtip diff -r e7f48702d409 -r 914babdc99c8 en/examples/run-example --- a/en/examples/run-example Mon Mar 12 22:56:29 2007 -0700 +++ b/en/examples/run-example Mon Mar 12 23:10:32 2007 -0700 @@ -203,7 +203,11 @@ if pi == 'name': self.status('.') out = rest - assert out not in ('err', 'lxo', 'out', 'run', 'tmp') + if out in ('err', 'lxo', 'out', 'run', 'tmp'): + print >> sys.stderr, ('%s: illegal section ' + 'name %r' % + (self.name, out)) + return 1 assert os.sep not in out if ofp is not None: ofp.close() diff -r e7f48702d409 -r 914babdc99c8 en/hgbook.css --- a/en/hgbook.css Mon Mar 12 22:56:29 2007 -0700 +++ b/en/hgbook.css Mon Mar 12 23:10:32 2007 -0700 @@ -12,15 +12,8 @@ font-size: 172%; font-family: monospace; } -.ptmr7t-x-x-172 { - font-family: monospace; -} .ptmr7t-x-x-120 { font-size: 120%; - font-family: monospace; -} -.ptmr7t-x-x-120 { - font-family: monospace; } .zpzccmry-x-x-120 { font-size: 120%; @@ -41,9 +34,6 @@ font-size: 50%; font-family: monospace; } -.ptmr7t-x-x-50 { - font-family: monospace; -} .ptmb7t- { font-weight: bold; } diff -r e7f48702d409 -r 914babdc99c8 en/hook.tex --- a/en/hook.tex Mon Mar 12 22:56:29 2007 -0700 +++ b/en/hook.tex Mon Mar 12 23:10:32 2007 -0700 @@ -435,14 +435,14 @@ \subsection{Writing meaningful commit messages} It's hard to imagine a useful commit message being very short. The -simple \hook{pretxncommit} hook of figure~\ref{ex:hook:msglen.run} +simple \hook{pretxncommit} hook of figure~\ref{ex:hook:msglen.go} will prevent you from committing a changeset with a message that is less than ten bytes long. \begin{figure}[ht] - \interaction{hook.msglen.run} + \interaction{hook.msglen.go} \caption{A hook that forbids overly short commit messages} - \label{ex:hook:msglen.run} + \label{ex:hook:msglen.go} \end{figure} \subsection{Checking for trailing whitespace} diff -r e7f48702d409 -r 914babdc99c8 en/intro.tex --- a/en/intro.tex Mon Mar 12 22:56:29 2007 -0700 +++ b/en/intro.tex Mon Mar 12 23:10:32 2007 -0700 @@ -1,7 +1,30 @@ \chapter{Introduction} \label{chap:intro} -XXX. +\section{What is revision control?} + +\section{Why use revision control?} + +\section{The hierarchy of revision control} + + +\subsection{On a single system} + +\subsection{Network-based, but centralised} + +\subsection{Fully distributed} + + +\section{Advantages of distributed revision control} + +\subsection{For open source projects} + +\subsection{For commercial projects} + +\subsection{Myths about distributed revision control} + +\section{Why choose Mercurial?} + %%% Local Variables: %%% mode: latex diff -r e7f48702d409 -r 914babdc99c8 en/mq.tex --- a/en/mq.tex Mon Mar 12 22:56:29 2007 -0700 +++ b/en/mq.tex Mon Mar 12 23:10:32 2007 -0700 @@ -768,7 +768,7 @@ name. \begin{figure}[ht] - \interaction{mq.id.out} + \interaction{mq.id.output} \caption{Using MQ's tag features to work with patches} \label{ex:mq:id} \end{figure}