Mercurial > hgbook
annotate ja/preface.tex @ 334:4ffdaa0773a3
done preface.tex
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 30 Mar 2008 18:34:59 +0900 |
parents | 3b1291f24c0d |
children | 8a3041e6f3cb |
rev | line source |
---|---|
334 | 1 %\chapter*{Preface} |
2 \chapter*{$B$^$($,$-(B} | |
26 | 3 \addcontentsline{toc}{chapter}{Preface} |
4 \label{chap:preface} | |
5 | |
334 | 6 %Distributed revision control is a relatively new territory, and has |
7 %thus far grown due to people's willingness to strike out into | |
8 %ill-charted territory. | |
9 | |
10 $BJ,;6%j%S%8%g%s%3%s%H%m!<%k$OHf3SE*?7$7$$NN0h$G$"$j!$$3$l$^$G$N4V0c$C$?NN(B | |
11 $B0h$+$iH4$1=P$=$&$H$$$&?M!9$N0U;V$G5^B.$KH/E8$7$F$$$k!%(B | |
26 | 12 |
334 | 13 %I am writing a book about distributed revision control because I |
14 %believe that it is an important subject that deserves a field guide. | |
15 %I chose to write about Mercurial because it is the easiest tool to | |
16 %learn the terrain with, and yet it scales to the demands of real, | |
17 %challenging environments where many other revision control tools fail. | |
26 | 18 |
334 | 19 $BI.<T$,J,;6%j%S%8%g%s%3%s%H%m!<%k$K$D$$$F$NK\$r=q$$$F$$$k$N$O!$$3$l$,%U%#!<(B |
20 $B%k%I%,%$%I$rI,MW$H$9$k=EMW$J2]Bj$@$H;W$C$?$+$i$@!%(BMercurial$B$K$D$$$F=q$3$&(B | |
21 $B$HA*$s$@$N$O!$$3$l$,A4BN$r3X$V$N$,:G$b4JC1$J%D!<%k$G!$$7$+$bB>$N%j%S%8%g(B | |
22 $B%s%3%s%H%m!<%k%D!<%k$,1}!9$K$7$F<:GT$7$F$$$k!$<B:]$ND)@oE*$J4D6-$N5a$a$K(B | |
23 $B9g$o$;$F%9%1!<%k$9$k%D!<%k$@$+$i$@!%(B | |
24 | |
25 | |
26 %\section{This book is a work in progress} | |
27 \section{$B$3$NK\$O<9I.Cf$G$"$k(B} | |
26 | 28 |
334 | 29 %I am releasing this book while I am still writing it, in the hope that |
30 %it will prove useful to others. I also hope that readers will | |
31 %contribute as they see fit. | |
26 | 32 |
334 | 33 $B$3$NK\$O$^$@<9I.Cf$G$"$k$,!$$3$l$,FI<T$K$H$C$FM-MQ$G$"$k$H?.$8$F8x3+$9$k(B |
34 $B$3$H$K$7$?!%$^$?!$FI<T$+$i$bH`$i$N5a$a$K9g$o$;$F9W8%$,$"$k$3$H$r4|BT$7$F(B | |
35 $B$$$k!%(B | |
36 | |
37 %\section{About the examples in this book} | |
38 \section{$B$3$NK\$NNc$K$D$$$F(B} | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
39 |
334 | 40 %This book takes an unusual approach to code samples. Every example is |
41 %``live''---each one is actually the result of a shell script that | |
42 %executes the Mercurial commands you see. Every time an image of the | |
43 %book is built from its sources, all the example scripts are | |
44 %automatically run, and their current results compared against their | |
45 %expected results. | |
46 | |
47 $B$3$NK\$O%3!<%I%5%s%W%k$KIaDL$H0c$&%"%W%m!<%A$r<h$C$F$$$k!%A4$F$NNc$O(B``$B@8(B | |
48 $B$-$F$$$k(B''---$BA4$F$NNc$O(BMercurial$B%3%^%s%I$r5/F0$9$k%7%'%k%9%/%j%W%H$N7k2L(B | |
49 $B$G$"$k!%$3$NK\$G$O!$2hA|$,%=!<%9$+$i@8@.$5$l$kEY$K!$%9%/%j%W%H$,<+F0E*$K(B | |
50 $B5/F0$9$k!%8=:_$N7k2L$O4|BT$5$l$k7k2L$HHf3S$5$l$k!%(B | |
51 | |
52 %The advantage of this approach is that the examples are always accurate; | |
53 %they describe \emph{exactly} the behaviour of the version of Mercurial | |
54 %that's mentioned at the front of the book. If I update the version of | |
55 %Mercurial that I'm documenting, and the output of some command changes, | |
56 %the build fails. | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
57 |
334 | 58 $B$3$N%"%W%m!<%A$NMxE@$O!$Nc$,>o$K@53N$G$"$k$3$H$G!$5-=R$OK\$NI=;f$G8@5Z$7(B |
59 $B$F$$$k(BMercurial$B$N%P!<%8%g%s$G$N5sF0$H(B\emph{$B87L)$K(B}$B0lCW$9$k!%(B | |
60 $BI.<T$,(BMercurial$B$N%P!<%8%g%s$r99?7$7!$%3%^%s%I$N=PNO$,JQ$o$k$H%S%k%I$O<:(B | |
61 $BGT$9$k!%(B | |
62 | |
63 %There is a small disadvantage to this approach, which is that the dates | |
64 %and times you'll see in examples tend to be ``squashed'' together in a | |
65 %way that they wouldn't be if the same commands were being typed by a | |
66 %human. Where a human can issue no more than one command every few | |
67 %seconds, with any resulting timestamps correspondingly spread out, my | |
68 %automated example scripts run many commands in one second. | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
69 |
334 | 70 $B$3$N%"%W%m!<%A$N>.$5$J7gE@$O!$Nc$NCf$G8+$i$l$kF|IU$H;~9o$,?M4V$,%?%$%W$7(B |
71 $B$F$$$l$PM-$jF@$J$$$[$I(B``$B=8$^$C$F(B''$B$7$^$C$F$$$k$3$H$@!%?M4V$G$"$l$P!$(B1$B$D$N(B | |
72 $B%3%^%s%I$r<B9T$9$k$N$K?tIC$O$+$+$j!$%?%$%`%9%?%s%W$O9-$$HO0O$K3H$,$k$O$:(B | |
73 $B$N$H$3$m$,!$$3$NK\$GNc$r:n@.$9$k%9%/%j%W%H$G$O!$(B1$BIC$KB?$/$N%3%^%s%I$r<B9T(B | |
74 $B$7$F$7$^$&!%(B | |
75 | |
76 %As an instance of this, several consecutive commits in an example can | |
77 %show up as having occurred during the same second. You can see this | |
78 %occur in the \hgext{bisect} example in section~\ref{sec:undo:bisect}, | |
79 %for instance. | |
80 | |
81 $B$3$N$?$a!$Nc$NCf$K8=$l$kO"B3$7$?%3%_%C%H$O!$F1$8IC$K5/$-$?$h$&$K$J$C$F$$(B | |
82 $B$k!%Nc$($P!$(B~\ref{sec:undo:bisect}$B$N@a$N(B\hgext{bisect}$B$NNc$G$3$l$,8+$i$l(B | |
83 $B$k!%(B | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
84 |
334 | 85 %So when you're reading examples, don't place too much weight on the |
86 %dates or times you see in the output of commands. But \emph{do} be | |
87 %confident that the behaviour you're seeing is consistent and | |
88 %reproducible. | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
89 |
334 | 90 $B=>$C$F!$Nc$rFI$`;~$K$O!$F|IU$H;~9o$K$"$^$j94$i$J$$$h$&$K$7$F$$$?$@$-$?$$!%(B |
91 $B$7$+$7!$$=$3$G8+$i$l$k$U$k$^$$$O@53N$G$"$j!$:F8=2DG=$G$"$k$3$H$O4V0c$$$N(B | |
92 $B$J$$$b$N$G$"$k!%(B | |
93 | |
94 | |
95 %\section{Colophon---this book is Free} | |
96 \section{$BGXI=;f(B---$B$3$NK\$OL5NA$G$"$k(B} | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
97 |
334 | 98 %This book is licensed under the Open Publication License, and is |
99 %produced entirely using Free Software tools. It is typeset with | |
100 %\LaTeX{}; illustrations are drawn and rendered with | |
101 %\href{http://www.inkscape.org/}{Inkscape}. | |
26 | 102 |
334 | 103 $B$3$NK\$O(BOpen Publication License$B$N2<$G%i%$%;%s%9$5$l!$A4BN$KEO$C$F%U%j!<(B |
104 $B%=%U%H%&%'%"%D!<%k$r;H$C$F:n$i$l$F$$$k!%AHHG$O(B\LaTeX{}$B$r;H$C$F9T$o$l!$?^(B | |
105 $BHG$O(B\href{http://www.inkscape.org/}{Inkscape}$B$r;H$C$F9T$o$l$F$$$k!%(B | |
26 | 106 |
334 | 107 %The complete source code for this book is published as a Mercurial |
108 %repository, at \url{http://hg.serpentine.com/mercurial/book}. | |
109 | |
110 $B$3$NK\$N40A4$J%=!<%9$O!$(B\url{http://hg.serpentine.com/mercurial/book}$B$K(B | |
111 $B$F(BMercurial$B%j%]%8%H%j$H$7$F8x3+$5$l$F$$$k!%(B | |
26 | 112 |
113 %%% Local Variables: | |
293
3b1291f24c0d
- replaved latex-mode to yatex-mode
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
290
diff
changeset
|
114 %%% mode: yatex |
26 | 115 %%% TeX-master: "00book" |
116 %%% End: |