changeset 155:914babdc99c8

run-example: better error if bogus section name found. Fix all such bogus names in sources.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 12 Mar 2007 23:10:32 -0700
parents e7f48702d409
children 91a936be78b8
files en/examples/hook.msglen en/examples/mq.id en/examples/run-example en/hgbook.css en/hook.tex en/intro.tex en/mq.tex
diffstat 7 files changed, 35 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
--- 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()
--- 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;
 }
--- 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}
--- 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
--- 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}