Mercurial > hgbook
annotate ja/preface.tex @ 835:8a3041e6f3cb
reflect comments by Hiroshi Someya.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 11 Jul 2009 19:25:35 +0900 |
parents | 4ffdaa0773a3 |
children |
rev | line source |
---|---|
334 | 1 %\chapter*{Preface} |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
2 \chapter*{$B$O$8$a$K(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 | |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
10 $BJ,;6%j%S%8%g%s%3%s%H%m!<%k$OHf3SE*?7$7$$NN0h$G$"$j!$$3$l$^$G$N4V0c$C$?$d(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
11 $B$j$+$?$+$iH4$1=P$=$&$H$$$&?M!9$N;W$$$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 |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
19 $BI.<T$,J,;6%j%S%8%g%s%3%s%H%m!<%k$NK\$r=q$$$?M}M3$O!$$3$l$,%U%#!<%k%I%,%$(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
20 $B%I$r=q$/$N$KAj1~$7$$=EMW$J%F!<%^$@$H9M$($?$+$i$G$"$k!%BP>]$H$7$F(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
21 Mercurial$B$rA*$s$@M}M3$O!$A4BN$N3X=,$,:G$bMF0W$J%D!<%k$G$"$j!$B>$N%j%S%8%g(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
22 $B%s%3%s%H%m!<%k%D!<%k$G$OF@$,$?$$%9%1!<%i%S%j%F%#$rM-$7$F$$$k$+$i$@!%(B |
334 | 23 |
24 %\section{This book is a work in progress} | |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
25 \section{$B$3$NK\$O8=:_<9I.Cf$G$"$k(B} |
26 | 26 |
334 | 27 %I am releasing this book while I am still writing it, in the hope that |
28 %it will prove useful to others. I also hope that readers will | |
29 %contribute as they see fit. | |
26 | 30 |
334 | 31 $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 |
32 $B$3$H$K$7$?!%$^$?!$FI<T$+$i$bH`$i$N5a$a$K9g$o$;$F9W8%$,$"$k$3$H$r4|BT$7$F(B | |
33 $B$$$k!%(B | |
34 | |
35 %\section{About the examples in this book} | |
36 \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
|
37 |
334 | 38 %This book takes an unusual approach to code samples. Every example is |
39 %``live''---each one is actually the result of a shell script that | |
40 %executes the Mercurial commands you see. Every time an image of the | |
41 %book is built from its sources, all the example scripts are | |
42 %automatically run, and their current results compared against their | |
43 %expected results. | |
44 | |
45 $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 | |
46 $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 | |
47 $B$G$"$k!%$3$NK\$G$O!$2hA|$,%=!<%9$+$i@8@.$5$l$kEY$K!$%9%/%j%W%H$,<+F0E*$K(B | |
48 $B5/F0$9$k!%8=:_$N7k2L$O4|BT$5$l$k7k2L$HHf3S$5$l$k!%(B | |
49 | |
50 %The advantage of this approach is that the examples are always accurate; | |
51 %they describe \emph{exactly} the behaviour of the version of Mercurial | |
52 %that's mentioned at the front of the book. If I update the version of | |
53 %Mercurial that I'm documenting, and the output of some command changes, | |
54 %the build fails. | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
55 |
334 | 56 $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 |
57 $B$F$$$k(BMercurial$B$N%P!<%8%g%s$G$N5sF0$H(B\emph{$B87L)$K(B}$B0lCW$9$k!%(B | |
58 $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 | |
59 $BGT$9$k!%(B | |
60 | |
61 %There is a small disadvantage to this approach, which is that the dates | |
62 %and times you'll see in examples tend to be ``squashed'' together in a | |
63 %way that they wouldn't be if the same commands were being typed by a | |
64 %human. Where a human can issue no more than one command every few | |
65 %seconds, with any resulting timestamps correspondingly spread out, my | |
66 %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
|
67 |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
68 $B$3$N%"%W%m!<%A$N>.$5$J7gE@$O!$Nc$NCf$K8=$l$kF|IU$H;~9o$,!$?M4V$N%?%$%W$G(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
69 $B$OM-$jF@$J$$$[$I(B``$B8G$^$C$F(B''$B$7$^$C$F$$$k$3$H$@!%?M4V$G$"$l$P!$(B1$B$D$N%3%^%s(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
70 $B%I$r<B9T$9$k$N$K?tIC$O$+$+$j!$%?%$%`%9%?%s%W$O9-$$HO0O$K3H$,$k$O$:$N$H$3(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
71 $B$m$,!$$3$NK\$GNc$r:n@.$9$k%9%/%j%W%H$G$O!$(B1$BIC$N4V$KB?$/$N%3%^%s%I$r<B9T$7(B |
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
72 $B$F$7$^$&!%(B |
334 | 73 |
74 %As an instance of this, several consecutive commits in an example can | |
75 %show up as having occurred during the same second. You can see this | |
76 %occur in the \hgext{bisect} example in section~\ref{sec:undo:bisect}, | |
77 %for instance. | |
78 | |
79 $B$3$N$?$a!$Nc$NCf$K8=$l$kO"B3$7$?%3%_%C%H$O!$F1$8IC$K5/$-$?$h$&$K$J$C$F$$(B | |
80 $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 | |
81 $B$k!%(B | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
82 |
334 | 83 %So when you're reading examples, don't place too much weight on the |
84 %dates or times you see in the output of commands. But \emph{do} be | |
85 %confident that the behaviour you're seeing is consistent and | |
86 %reproducible. | |
200
9bba958be4c6
Mention automatic example generation.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
87 |
334 | 88 $B=>$C$F!$Nc$rFI$`;~$K$O!$F|IU$H;~9o$K$"$^$j94$i$J$$$h$&$K$7$F$$$?$@$-$?$$!%(B |
89 $B$7$+$7!$$=$3$G8+$i$l$k$U$k$^$$$O@53N$G$"$j!$:F8=2DG=$G$"$k$3$H$O4V0c$$$N(B | |
90 $B$J$$$b$N$G$"$k!%(B | |
91 | |
92 | |
93 %\section{Colophon---this book is Free} | |
94 \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
|
95 |
334 | 96 %This book is licensed under the Open Publication License, and is |
97 %produced entirely using Free Software tools. It is typeset with | |
98 %\LaTeX{}; illustrations are drawn and rendered with | |
99 %\href{http://www.inkscape.org/}{Inkscape}. | |
26 | 100 |
334 | 101 $B$3$NK\$O(BOpen Publication License$B$N2<$G%i%$%;%s%9$5$l!$A4BN$KEO$C$F%U%j!<(B |
102 $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 | |
103 $BHG$O(B\href{http://www.inkscape.org/}{Inkscape}$B$r;H$C$F9T$o$l$F$$$k!%(B | |
26 | 104 |
334 | 105 %The complete source code for this book is published as a Mercurial |
106 %repository, at \url{http://hg.serpentine.com/mercurial/book}. | |
107 | |
108 $B$3$NK\$N40A4$J%=!<%9$O!$(B\url{http://hg.serpentine.com/mercurial/book}$B$K(B | |
109 $B$F(BMercurial$B%j%]%8%H%j$H$7$F8x3+$5$l$F$$$k!%(B | |
26 | 110 |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
111 %%% Local Variables: |
293
3b1291f24c0d
- replaved latex-mode to yatex-mode
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
290
diff
changeset
|
112 %%% mode: yatex |
26 | 113 %%% TeX-master: "00book" |
835
8a3041e6f3cb
reflect comments by Hiroshi Someya.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
334
diff
changeset
|
114 %%% End: |