Commits

Bryan O'Sullivan  committed 914babd

run-example: better error if bogus section name found.
Fix all such bogus names in sources.

  • Participants
  • Parent commits e7f4870

Comments (0)

Files changed (7)

File en/examples/hook.msglen

 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

File en/examples/mq.id

 hg add other.c
 hg qrefresh
 
-#$ name: out
+#$ name: output
 
 hg qapplied
 hg log -r qbase:qtip

File en/examples/run-example

                         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()

File en/hgbook.css

   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%;
   font-size: 50%;
   font-family: monospace;
 }
-.ptmr7t-x-x-50 {
-  font-family: monospace;
-}
 .ptmb7t- {
   font-weight: bold;
 }
 \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}

File en/intro.tex

 \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
 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}