hgbook
changeset 155:914babdc99c8
run-example: better error if bogus section name found.
Fix all such bogus names in sources.
Fix all such bogus names in sources.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 12 23:10:32 2007 -0700 (2007-03-12) |
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 |
line diff
1.1 --- a/en/examples/hook.msglen Mon Mar 12 22:56:29 2007 -0700 1.2 +++ b/en/examples/hook.msglen Mon Mar 12 23:10:32 2007 -0700 1.3 @@ -5,7 +5,7 @@ 1.4 echo '[hooks]' > .hg/hgrc 1.5 echo 'pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10' >> .hg/hgrc 1.6 1.7 -#$ name: run 1.8 +#$ name: go 1.9 1.10 cat .hg/hgrc 1.11 echo a > a
2.1 --- a/en/examples/mq.id Mon Mar 12 22:56:29 2007 -0700 2.2 +++ b/en/examples/mq.id Mon Mar 12 23:10:32 2007 -0700 2.3 @@ -18,7 +18,7 @@ 2.4 hg add other.c 2.5 hg qrefresh 2.6 2.7 -#$ name: out 2.8 +#$ name: output 2.9 2.10 hg qapplied 2.11 hg log -r qbase:qtip
3.1 --- a/en/examples/run-example Mon Mar 12 22:56:29 2007 -0700 3.2 +++ b/en/examples/run-example Mon Mar 12 23:10:32 2007 -0700 3.3 @@ -203,7 +203,11 @@ 3.4 if pi == 'name': 3.5 self.status('.') 3.6 out = rest 3.7 - assert out not in ('err', 'lxo', 'out', 'run', 'tmp') 3.8 + if out in ('err', 'lxo', 'out', 'run', 'tmp'): 3.9 + print >> sys.stderr, ('%s: illegal section ' 3.10 + 'name %r' % 3.11 + (self.name, out)) 3.12 + return 1 3.13 assert os.sep not in out 3.14 if ofp is not None: 3.15 ofp.close()
4.1 --- a/en/hgbook.css Mon Mar 12 22:56:29 2007 -0700 4.2 +++ b/en/hgbook.css Mon Mar 12 23:10:32 2007 -0700 4.3 @@ -12,15 +12,8 @@ 4.4 font-size: 172%; 4.5 font-family: monospace; 4.6 } 4.7 -.ptmr7t-x-x-172 { 4.8 - font-family: monospace; 4.9 -} 4.10 .ptmr7t-x-x-120 { 4.11 font-size: 120%; 4.12 - font-family: monospace; 4.13 -} 4.14 -.ptmr7t-x-x-120 { 4.15 - font-family: monospace; 4.16 } 4.17 .zpzccmry-x-x-120 { 4.18 font-size: 120%; 4.19 @@ -41,9 +34,6 @@ 4.20 font-size: 50%; 4.21 font-family: monospace; 4.22 } 4.23 -.ptmr7t-x-x-50 { 4.24 - font-family: monospace; 4.25 -} 4.26 .ptmb7t- { 4.27 font-weight: bold; 4.28 }
5.1 --- a/en/hook.tex Mon Mar 12 22:56:29 2007 -0700 5.2 +++ b/en/hook.tex Mon Mar 12 23:10:32 2007 -0700 5.3 @@ -435,14 +435,14 @@ 5.4 \subsection{Writing meaningful commit messages} 5.5 5.6 It's hard to imagine a useful commit message being very short. The 5.7 -simple \hook{pretxncommit} hook of figure~\ref{ex:hook:msglen.run} 5.8 +simple \hook{pretxncommit} hook of figure~\ref{ex:hook:msglen.go} 5.9 will prevent you from committing a changeset with a message that is 5.10 less than ten bytes long. 5.11 5.12 \begin{figure}[ht] 5.13 - \interaction{hook.msglen.run} 5.14 + \interaction{hook.msglen.go} 5.15 \caption{A hook that forbids overly short commit messages} 5.16 - \label{ex:hook:msglen.run} 5.17 + \label{ex:hook:msglen.go} 5.18 \end{figure} 5.19 5.20 \subsection{Checking for trailing whitespace}
6.1 --- a/en/intro.tex Mon Mar 12 22:56:29 2007 -0700 6.2 +++ b/en/intro.tex Mon Mar 12 23:10:32 2007 -0700 6.3 @@ -1,7 +1,30 @@ 6.4 \chapter{Introduction} 6.5 \label{chap:intro} 6.6 6.7 -XXX. 6.8 +\section{What is revision control?} 6.9 + 6.10 +\section{Why use revision control?} 6.11 + 6.12 +\section{The hierarchy of revision control} 6.13 + 6.14 + 6.15 +\subsection{On a single system} 6.16 + 6.17 +\subsection{Network-based, but centralised} 6.18 + 6.19 +\subsection{Fully distributed} 6.20 + 6.21 + 6.22 +\section{Advantages of distributed revision control} 6.23 + 6.24 +\subsection{For open source projects} 6.25 + 6.26 +\subsection{For commercial projects} 6.27 + 6.28 +\subsection{Myths about distributed revision control} 6.29 + 6.30 +\section{Why choose Mercurial?} 6.31 + 6.32 6.33 %%% Local Variables: 6.34 %%% mode: latex
7.1 --- a/en/mq.tex Mon Mar 12 22:56:29 2007 -0700 7.2 +++ b/en/mq.tex Mon Mar 12 23:10:32 2007 -0700 7.3 @@ -768,7 +768,7 @@ 7.4 name. 7.5 7.6 \begin{figure}[ht] 7.7 - \interaction{mq.id.out} 7.8 + \interaction{mq.id.output} 7.9 \caption{Using MQ's tag features to work with patches} 7.10 \label{ex:mq:id} 7.11 \end{figure}