Mercurial > hgbook
annotate ja/tour-merge.tex @ 794:41bb6ec2ca27
Propagate c36a6f534b99
Fix named branching book section.
'hg update -C branchname' is no longer required to jump from one named
branch to another one; this can also be done simply using 'hg update
branchname'.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 18 Jun 2009 16:23:58 +0900 |
parents | 4e746f46085c |
children | 7107b79427a3 |
rev | line source |
---|---|
365 | 1 %\chapter{A tour of Mercurial: merging work} |
2 \chapter{Mercurial$B%D%"!<(B: $B%^!<%8(B} | |
95
47ea206351d5
Split tour into two sections.
Bryan O'Sullivan <bos@serpentine.com>
parents:
94
diff
changeset
|
3 \label{chap:tour-merge} |
94 | 4 |
365 | 5 %We've now covered cloning a repository, making changes in a |
6 %repository, and pulling or pushing changes from one repository into | |
7 %another. Our next step is \emph{merging} changes from separate | |
8 %repositories. | |
9 | |
10 $B2f!9$O4{$K%j%]%8%H%j$N%/%m!<%s!$%j%]%8%H%j$KBP$9$kJQ99!$(B1$B$D$N%j%]%8%H%j$+(B | |
11 $B$i$N(Bpull$B$HJL$N(B1$B$D$N%j%]%8%H%j$KBP$9$k(Bpush$B$r9T$C$?!%<!$N%9%F%C%W$OJL$N%j%](B | |
12 $B%8%H%j$+$iJQ99$r(B\emph{$B%^!<%8(B}$B$9$k$3$H$G$"$k!%(B | |
94 | 13 |
365 | 14 %\section{Merging streams of work} |
15 \section{$BJ#?t$N:n6H7k2L$r%^!<%8$9$k(B} | |
16 | |
17 %Merging is a fundamental part of working with a distributed revision | |
18 %control tool. | |
19 | |
20 $B%^!<%8$OJ,;6%j%S%8%g%s%3%s%H%m!<%k%D!<%k$G$N:n6H$K$*$$$FIT2D7g$NItJ,$G$"(B | |
21 $B$k!%(B | |
95
47ea206351d5
Split tour into two sections.
Bryan O'Sullivan <bos@serpentine.com>
parents:
94
diff
changeset
|
22 |
94 | 23 \begin{itemize} |
365 | 24 %\item Alice and Bob each have a personal copy of a repository for a |
25 | |
26 % project they're collaborating on. Alice fixes a bug in her | |
27 % repository; Bob adds a new feature in his. They want the shared | |
28 % repository to contain both the bug fix and the new feature. | |
29 \item $B%"%j%9$H%\%V$O6&F1:n6H$7$F$$$k%W%m%8%'%/%H$N%j%]%8%H%j%3%T!<$r3F!9(B | |
30 $B;}$C$F$$$k!%%"%j%9$O<+J,$N%j%]%8%H%j$G%P%0$r=$@5$7!$%\%V$OH`$N%j%]%8%H%j(B | |
31 $B$G?75!G=$rDI2C$7$?!%H`$i$O%P%0=$@5$H?75!G=$NN>J}$r;}$D%j%]%8%H%j$r6&M-$7(B | |
32 $B$?$$$H9M$($F$$$k!%(B | |
33 | |
34 %\item I frequently work on several different tasks for a single | |
35 % project at once, each safely isolated in its own repository. | |
36 % Working this way means that I often need to merge one piece of my | |
37 % own work with another. | |
38 \item $B;d$O0l$D$N%W%m%8%'%/%H$NJL!9$N%?%9%/$KBP$7$FF1;~$K:n6H$r9T$&$3$H$r(B | |
39 $B$h$/9T$C$F$$$k!%$3$N$h$&$J:n6H%9%?%$%k$G$O!$<+J,$N:n6H$N0l$D$+$iJL(B | |
40 $B$N:n6H$N0l$D$X7k2L$r%^!<%8$7$?$$$H;W$&$3$H$,$7$P$7$P$"$k!%(B | |
41 | |
94 | 42 \end{itemize} |
43 | |
365 | 44 %Because merging is such a common thing to need to do, Mercurial makes |
45 %it easy. Let's walk through the process. We'll begin by cloning yet | |
46 %another repository (see how often they spring up?) and making a change | |
47 %in it. | |
48 | |
49 $B>e$G=R$Y$?$h$&$K%^!<%8$r9T$$$?$$>u67$O$H$F$bB?$$$?$a!$(B Mercurial$B$G$O%^!<(B | |
50 $B%8$r4JC1$K9T$($k$h$&$K$J$C$F$$$k!%$^$:JL$N%j%]%8%H%j$r%/%m!<%s$7!$JQ99$r(B | |
51 $B2C$($k$H$3$m$+$i;O$a$h$&!%(B | |
94 | 52 \interaction{tour.merge.clone} |
365 | 53 |
54 %We should now have two copies of \filename{hello.c} with different | |
55 %contents. The histories of the two repositories have also diverged, | |
56 %as illustrated in figure~\ref{fig:tour-merge:sep-repos}. | |
57 | |
58 $B:#!$FbMF$N0[$J$C$?(B2$B$D$N(B\filename{hello.c}$B$,$"$k!%(B 2$B$D$N%j%]%8%H%j$NMzNr$O(B | |
59 $B?^(B~\ref{fig:tour-merge:sep-repos}$B$K<($9$h$&$KJ,$+$l$F$$$k!%(B | |
94 | 60 \interaction{tour.merge.cat} |
61 | |
99 | 62 \begin{figure}[ht] |
63 \centering | |
64 \grafix{tour-merge-sep-repos} | |
365 | 65 % \caption{Divergent recent histories of the \dirname{my-hello} and |
66 % \dirname{my-new-hello} repositories} | |
67 \caption{\dirname{my-hello}$B%j%]%8%H%j$H(B\dirname{my-new-hello}$B%j%]%8%H(B | |
68 $B%j$NMzNr$N:90[(B} | |
99 | 69 \label{fig:tour-merge:sep-repos} |
70 \end{figure} | |
71 | |
365 | 72 %We already know that pulling changes from our \dirname{my-hello} |
73 %repository will have no effect on the working directory. | |
74 $B4{$K(B\dirname{my-hello}$B%j%]%8%H%j$+$i$N(Bpull$B$O%o!<%-%s%0%G%#%l%/%H%j$K2?$N(B | |
75 $B1F6A$bM?$($J$$$3$H$r3X$s$@!%(B | |
94 | 76 \interaction{tour.merge.pull} |
365 | 77 %However, the \hgcmd{pull} command says something about ``heads''. |
78 $B$7$+$7(B\hgcmd{pull}$B%3%^%s%I$O(B``heads''$B$K$D$$$F%a%C%;!<%8$rI=<($9$k!%(B | |
94 | 79 |
365 | 80 %\subsection{Head changesets} |
81 \subsection{Head$B%A%'%s%8%;%C%H(B} | |
102 | 82 |
365 | 83 %A head is a change that has no descendants, or children, as they're |
84 %also known. The tip revision is thus a head, because the newest | |
85 %revision in a repository doesn't have any children, but a repository | |
86 %can contain more than one head. | |
87 head$B$O;RB9$d;R$r;}$?$J$$JQ99$G$"$k!%%j%]%8%H%j$N:G?7$N%j%S%8%g%s$O;R$r;}(B | |
88 $B$?$J$$$?$a!$(Btip$B%j%S%8%g%s$O$9$J$o$A(Bhead$B$G$"$k!%0lJ}$G%j%]%8%H%j$OJ#?t$N(B | |
89 head$B$r;}$AF@$k!%(B | |
99 | 90 |
91 \begin{figure}[ht] | |
92 \centering | |
93 \grafix{tour-merge-pull} | |
365 | 94 % \caption{Repository contents after pulling from \dirname{my-hello} into |
95 % \dirname{my-new-hello}} | |
96 \caption{\dirname{my-hello}$B$+$i(B\dirname{my-new-hello}$B$X(Bpull$B$7$?$"$H$N(B | |
97 $B%j%]%8%H%j$NFbMF(B} | |
99 | 98 \label{fig:tour-merge:pull} |
99 \end{figure} | |
100 | |
365 | 101 %In figure~\ref{fig:tour-merge:pull}, you can see the effect of the |
102 %pull from \dirname{my-hello} into \dirname{my-new-hello}. The history | |
103 %that was already present in \dirname{my-new-hello} is untouched, but a | |
104 %new revision has been added. By referring to | |
105 %figure~\ref{fig:tour-merge:sep-repos}, we can see that the | |
106 %\emph{changeset ID} remains the same in the new repository, but the | |
107 %\emph{revision number} has changed. (This, incidentally, is a fine | |
108 %example of why it's not safe to use revision numbers when discussing | |
109 %changesets.) We can view the heads in a repository using the | |
110 %\hgcmd{heads} command. | |
111 %\interaction{tour.merge.heads} | |
112 | |
113 $B?^(B~\ref{fig:tour-merge:pull}$B$K(B\dirname{my-hello}$B$+$i(B | |
114 \dirname{my-new-hello}$B$X(Bpull$B$r9T$C$?8z2L$r<($9!%(B \dirname{my-new-hello}$B$K(B | |
115 $B4{$KB8:_$7$?MzNr$OJQ99$5$l$:!$?7$?$K%j%S%8%g%s$,DI2C$5$l$k!%(B | |
116 figure~\ref{fig:tour-merge:sep-repos}$B$r8+$k$H!$?7$7$$%j%]%8%H%j$K$b(B | |
117 \emph{changeset ID}$B$,;D$C$F$$$k$3$H!$(B\emph{$B%j%S%8%g%sHV9f(B}$B$,JQ99$5$l$F$$(B | |
118 $B$k$3$H$,J,$+$k!%(B $B!J$3$l$OF1;~$K%A%'%s%8%;%C%H$K$D$$$FO@$8$k:]$K%j%S%8%g%s(B | |
119 $BHV9f$rMQ$$$k$N$,0BA4$G$J$$$3$H$NNc$K$J$C$F$$$k!%!K%j%]%8%H%jFb$K$"$k(Bhead | |
120 $B$O(B\hgcmd{heads}$B$K$h$C$F8+$k$3$H$,$G$-$k!%(B | |
94 | 121 \interaction{tour.merge.heads} |
102 | 122 |
365 | 123 %\subsection{Performing the merge} |
124 \subsection{$B%^!<%8$r<B9T$9$k(B} | |
102 | 125 |
365 | 126 %What happens if we try to use the normal \hgcmd{update} command to |
127 %update to the new tip? | |
128 %\interaction{tour.merge.update} | |
129 | |
130 $B?7$7$$(Btip$B$X99?7$9$k$?$a$K(B\hgcmd{update}$B$r;H$C$?>l9g2?$,5/$-$k$+!)(B | |
94 | 131 \interaction{tour.merge.update} |
365 | 132 |
133 %Mercurial is telling us that the \hgcmd{update} command won't do a | |
134 %merge; it won't update the working directory when it thinks we might | |
135 %be wanting to do a merge, unless we force it to do so. Instead, we | |
136 %use the \hgcmd{merge} command to merge the two heads. | |
137 %\interaction{tour.merge.merge} | |
138 | |
139 Mercurial$B$O(B\hgcmd{update}$B%3%^%s%I$,%^!<%8$r9T$o$J$$$H%a%C%;!<%8$rI=<($9(B | |
140 $B$k!%(B \hgcmd{update}$B%3%^%s%I$O!$%^!<%8$,I,MW$H9M$($i$l$k>l9g$O!$%f!<%6$,(B | |
141 $B!J%*%W%7%g%s$K$h$C$F!K6/@)$7$J$$8B$j%o!<%-%s%0%G%#%l%/%H%j$r99?7$7$J$$!%(B | |
142 $B0lJ}!$(B\hgcmd{merge}$B%3%^%s%I$O(B2$B$D$N%X%C%I$N%^!<%8$r9T$&!%(B | |
94 | 143 \interaction{tour.merge.merge} |
100
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
144 |
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
145 \begin{figure}[ht] |
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
146 \centering |
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
147 \grafix{tour-merge-merge} |
365 | 148 % \caption{Working directory and repository during merge, and |
149 % following commit} | |
150 \caption{$B%^!<%8Cf$N%o!<%-%s%0%G%#%l%/%H%j$H%j%]%8%H%j$*$h$S8eB3$N%3%_%C(B | |
151 $B%H(B} | |
100
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
152 \label{fig:tour-merge:merge} |
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
153 \end{figure} |
272146fab009
Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents:
99
diff
changeset
|
154 |
365 | 155 %This updates the working directory so that it contains changes from |
156 %\emph{both} heads, which is reflected in both the output of | |
157 %\hgcmd{parents} and the contents of \filename{hello.c}. | |
158 %\interaction{tour.merge.parents} | |
159 | |
160 $B$3$NA`:n$K$h$C$F(B\hgcmd{parents}$B$H(B\filename{hello.c}$B$N=PNO$NAPJ}$rH?1G$9$k(B | |
161 \emph{$BAPJ}$N(B}head$B$+$i$NJQ99$r4^$`$h$&$K%o!<%-%s%0%G%#%l%/%H%j$,99?7$5$l$k!%(B | |
102 | 162 |
365 | 163 %\subsection{Committing the results of the merge} |
164 \subsection{$B%^!<%87k2L$r%3%_%C%H$9$k(B} | |
102 | 165 |
365 | 166 %Whenever we've done a merge, \hgcmd{parents} will display two parents |
167 %until we \hgcmd{commit} the results of the merge. | |
168 %\interaction{tour.merge.commit} | |
169 | |
170 $B%^!<%8$r9T$&$H!$%^!<%8$N7k2L$r(B\hgcmd{commit}$B$9$k$^$G!$(B\hgcmd{parents}$B$O(B2 | |
171 $B$D$N%Z%"%l%s%H$rI=<($9$k!%(B | |
94 | 172 \interaction{tour.merge.commit} |
365 | 173 |
174 %We now have a new tip revision; notice that it has \emph{both} of | |
175 %our former heads as its parents. These are the same revisions that | |
176 %were previously displayed by \hgcmd{parents}. | |
177 %\interaction{tour.merge.tip} | |
178 | |
179 $B?7$7$$(Btip$B%j%S%8%g%s$O0JA0$N%X%C%I(B\emph{$BN>J}(B}$B$r?F$H$7$F;}$D!%$3$l$i$O(B | |
180 \hgcmd{parents}$B%3%^%s%I$GI=<($7$?$N$HF1$8%j%S%8%g%s$G$"$k!%(B | |
94 | 181 \interaction{tour.merge.tip} |
365 | 182 |
183 %In figure~\ref{fig:tour-merge:merge}, you can see a representation of | |
184 %what happens to the working directory during the merge, and how this | |
185 %affects the repository when the commit happens. During the merge, the | |
186 %working directory has two parent changesets, and these become the | |
187 %parents of the new changeset. | |
94 | 188 |
365 | 189 $B?^(B~\ref{fig:tour-merge:merge}$B$G!$%^!<%8$N4V$K%o!<%-%s%0%G%#%l%/%H%j$K2?$,(B |
190 $B5/$-!$%3%_%C%H$7$?;~$K%j%]%8%H%j$K$I$&1F6A$9$k$N$+$r8+$k$3$H$,$G$-$k!%(B | |
191 $B%^!<%8$N4V!$%o!<%-%s%0%G%#%l%/%H%j$O(B2$B$D$N?F%A%'%s%8%;%C%H$r;}$A!$$3$l$i$O(B | |
192 $B?7$7$$%A%'%s%8%;%C%H$NN>?F$H$J$k!%(B | |
193 | |
194 %\section{Merging conflicting changes} | |
195 \section{$B%3%s%U%j%/%H$N$"$kJQ99$r%^!<%8$9$k(B} | |
102 | 196 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
197 %Most merges are simple affairs, but sometimes you'll find yourself |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
198 %merging changes where each modifies the same portions of the same |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
199 %files. Unless both modifications are identical, this results in a |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
200 %\emph{conflict}, where you have to decide how to reconcile the |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
201 %different changes into something coherent. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
202 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
203 $BBgH>$N%^!<%8$O%7%s%W%k$J$b$N$@$,!$>l9g$K$h$C$F$OF1$8%U%!%$%k$NF1$82U=j$r(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
204 $BJQ99$7$F$$$k%A%'%s%8%;%C%H$r%^!<%8$7$J$1$l$P$J$i$J$$$3$H$,$"$k!%J#?t$NJQ(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
205 $B99$,F1$8FbMF$G$J$$8B$j!$7k2L$O(B\emph{conflict}$B$H$J$k$?$a!$Aj0[$J$kJQ99$r@0(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
206 $B9g$5$;$k$h$&$K=$@5$9$kI,MW$,$"$k!%(B |
103 | 207 |
208 \begin{figure}[ht] | |
209 \centering | |
210 \grafix{tour-merge-conflict} | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
211 % \caption{Conflicting changes to a document} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
212 \caption{$B%3%s%U%j%/%H$7$?%A%'%s%8%;%C%H(B} |
103 | 213 \label{fig:tour-merge:conflict} |
214 \end{figure} | |
215 | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
216 %Figure~\ref{fig:tour-merge:conflict} illustrates an instance of two |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
217 %conflicting changes to a document. We started with a single version |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
218 %of the file; then we made some changes; while someone else made |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
219 %different changes to the same text. Our task in resolving the |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
220 %conflicting changes is to decide what the file should look like. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
221 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
222 1$B$D$N%I%-%e%a%s%H$KBP$7$F(B2$B$D$N%A%'%s%8%;%C%H$,%3%s%U%j%/%H$7$?MM;R$r(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
223 $B?^(B~\ref{fig:tour-merge:conflict}$B$K<($9!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
224 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
225 $B$3$3$G$O!$$"$k(B1$B$D$N%P!<%8%g%s$N%U%!%$%k$K$$$/$D$+$NJQ99$r2C$(!$F1;~$KJL$N(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
226 $B?M$,JL$NJQ99$rF1$8%F%-%9%H$KBP$7$F2C$($F$$$k!%%A%'%s%8%;%C%H$N%3%s%U%j%/(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
227 $B%H$r2r7h$9$k$?$a!$%U%!%$%k$,$I$&$"$k$Y$-$+$rL@$i$+$K$7$h$&!%(B |
103 | 228 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
229 %Mercurial doesn't have a built-in facility for handling conflicts. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
230 %Instead, it runs an external program called \command{hgmerge}. This |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
231 %is a shell script that is bundled with Mercurial; you can change it to |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
232 %behave however you please. What it does by default is try to find one |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
233 %of several different merging tools that are likely to be installed on |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
234 %your system. It first tries a few fully automatic merging tools; if |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
235 %these don't succeed (because the resolution process requires human |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
236 %guidance) or aren't present, the script tries a few different |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
237 %graphical merging tools. |
103 | 238 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
239 Mercurial$B$OFbB"$N%3%s%U%j%/%H2r7h5!9=$r;}$?$J$$!%$=$NBe$o(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
240 $B$j!$(B\command{hgmerge}$B$H$$$&30It%3%^%s%I$r5/F0$9$k!%$3$l$O(BMercurial$B$KF1:-(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
241 $B$5$l$?%7%'%k%9%/%j%W%H$G!$5sF0$rJQ99$9$k$3$H$b2DG=$G$"$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
242 $B%G%U%)%k%H$G$3$N%3%^%s%I$,9T$&$3$H$O!$%7%9%F%`$K%$%s%9%H!<%k$5$l$F$$$k2D(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
243 $BG=@-$N9b$$$$$/$D$+$N0[$J$C$?%^!<%8%D!<%k$N(B1$B$D$rA\$7=P$9$3$H$G$"$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
244 $B:G=i$K(B2,3$B$NA4<+F0$N%^!<%8%D!<%k$r;n$9!%$3$l$G$&$^$/$$$+$J$$>l9g!J2r7h%W(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
245 $B%m%;%9$K?M$N%,%$%I$,I,MW$J$?$a!K$d%D!<%k$,B8:_$7$J$$>l9g!$%9%/%j%W%H$O(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
246 $BJL$N(B2,3$B$N%0%i%U%#%+%k%^!<%8%D!<%k$r;n$9!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
247 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
248 %It's also possible to get Mercurial to run another program or script |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
249 %instead of \command{hgmerge}, by setting the \envar{HGMERGE} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
250 %environment variable to the name of your preferred program. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
251 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
252 $B4D6-JQ?t(B\envar{HGMERGE}$B$K9%$_$N%W%m%0%i%`L>$r$r@_Dj$9$k$3$H$G!$(BMercurial |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
253 $B$,(B\command{hgmerge}$B0J30$N%9%/%j%W%H$r5/F0$9$k$h$&$K$9$k$3$H$b2DG=$G$"$k!%(B |
103 | 254 |
365 | 255 %\subsection{Using a graphical merge tool} |
256 \subsection{$B%0%i%U%#%+%k%^!<%8%D!<%k$N;HMQ(B} | |
103 | 257 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
258 %My preferred graphical merge tool is \command{kdiff3}, which I'll use |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
259 %to describe the features that are common to graphical file merging |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
260 %tools. You can see a screenshot of \command{kdiff3} in action in |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
261 %figure~\ref{fig:tour-merge:kdiff3}. The kind of merge it is |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
262 %performing is called a \emph{three-way merge}, because there are three |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
263 %different versions of the file of interest to us. The tool thus |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
264 %splits the upper portion of the window into three panes: |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
265 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
266 $BI.<T$N9%$_$N%0%i%U%#%+%k%^!<%8%D!<%k$O(B\command{kdiff3}$B$J$N$G!$$3$l$r;H$C(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
267 $B$F%0%i%U%#%+%k%U%!%$%k%^!<%8%D!<%k$N5!G=$r@bL@$9$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
268 $B?^(B~\ref{fig:tour-merge:kdiff3}$B$K(B\command{kdiff3}$B$N<B:]$NF0:n$N%9%/%j!<%s(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
269 $B%7%g%C%H$r<($9!%:#CmL\$7$F$$$k%U%!%$%k$K$O(B3$B$D$N0[$J$C$?%P!<%8%g%s$,$"$k$?(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
270 $B$a!$$3$3$G<B9T$5$l$F$$$k$N$O(B\emph{3way$B%^!<%8(B}$B$G$"$k!%%D!<%k$O%&%#%s%I%&$N(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
271 $B>eIt$r(B3$B$D$N%Z!<%s$KJ,3d$7$F$$$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
272 |
103 | 273 \begin{itemize} |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
274 %\item At the left is the \emph{base} version of the file, i.e.~the |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
275 % most recent version from which the two versions we're trying to |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
276 % merge are descended. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
277 \item $B:8$K$"$k$N$O%U%!%$%k$N(B\emph{$B%Y!<%9(B}$B%P!<%8%g%s$G$"$k!%$3$l$O$3$l$+(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
278 $B$i%^!<%8$7$h$&$H$9$k(B2$B$D$N%P!<%8%g%s$N?F$H$J$k:G$b:G6a$N%P!<%8%g%s(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
279 $B$G$"$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
280 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
281 %\item In the middle is ``our'' version of the file, with the contents |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
282 % that we modified. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
283 \item $BCf1{$K$"$k$N$O2f!9$,JQ99$r2C$($?%P!<%8%g%s$G$"$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
284 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
285 %\item On the right is ``their'' version of the file, the one that |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
286 % from the changeset that we're trying to merge with. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
287 \item $B1&$K$"$k$N$OB>$N?M$,JQ99$r2C$($?%P!<%8%g%s$G!$$3$l$+$i%^!<%8$7$h(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
288 $B$&$H$9$k$b$N$G$"$k!%(B |
103 | 289 \end{itemize} |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
290 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
291 %In the pane below these is the current \emph{result} of the merge. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
292 %Our task is to replace all of the red text, which indicates unresolved |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
293 %conflicts, with some sensible merger of the ``ours'' and ``theirs'' |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
294 %versions of the file. |
103 | 295 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
296 $B$3$N2<$N%Z!<%s$K$O%^!<%8$N(B\emph{$B7k2L(B}$B$,$"$k!%@V;z$N9T$O%3%s%U%j%/%H$r<($7(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
297 $B$F$*$j!$2f!9$N%P!<%8%g%s$HB>$N?M$N%P!<%8%g%s$rCm0U?<$/%^!<%8$7$?7k2L$rMQ(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
298 $B$$$F$3$l$i$r$9$Y$FCV$-49$($k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
299 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
300 %All four of these panes are \emph{locked together}; if we scroll |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
301 %vertically or horizontally in any of them, the others are updated to |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
302 %display the corresponding sections of their respective files. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
303 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
304 4$B$D$N%Z!<%s$9$Y$F$O(B\emph{$BF14|(B}$B$7$F$*$j!"$I$l$+$r?bD>$^$?$O?eJ?$K%9%/%m!<(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
305 $B%k$9$k$H!"B>$N(B3$B$D$bBP1~$9$k2U=j$rI=<($9$k$h$&$K99?7$5$l$k!#(B |
102 | 306 |
103 | 307 \begin{figure}[ht] |
308 \centering | |
309 \grafix{kdiff3} | |
365 | 310 % \caption{Using \command{kdiff3} to merge versions of a file} |
311 \caption{$B%U%!%$%k$NJ#?t%j%S%8%g%s$r(B\command{kdiff3}$B$r;H$C$F%^!<%8$9$k(B} | |
103 | 312 \label{fig:tour-merge:kdiff3} |
313 \end{figure} | |
314 | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
315 %For each conflicting portion of the file, we can choose to resolve |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
316 %the conflict using some combination of text from the base version, |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
317 %ours, or theirs. We can also manually edit the merged file at any |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
318 %time, in case we need to make further modifications. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
319 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
320 $B%3%s%U%j%/%H$r2r7h$9$k$?$a$K!$%U%!%$%kCf$N%3%s%U%j%/%H$7$F$$$k$9$Y$F$NIt(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
321 $BJ,$KBP$7$F%Y!<%9%P!<%8%g%s!$2f!9$N%P!<%8%g%s!$JL$N?M!9$N%P!<%8%g%s$N%F%-(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
322 $B%9%H$rAH$_9g$o$;$FMQ$$$k!%$5$i$J$k=$@5$,I,MW$J>l9g$O!$%^!<%8$5$l$?%U%!%$(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
323 $B%k$r<jF0$GJT=8$9$k$3$H$b$G$-$k!%(B |
103 | 324 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
325 %There are \emph{many} file merging tools available, too many to cover |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
326 %here. They vary in which platforms they are available for, and in |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
327 %their particular strengths and weaknesses. Most are tuned for merging |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
328 %files containing plain text, while a few are aimed at specialised file |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
329 %formats (generally XML). |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
330 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
331 \emph{$B?t!9$N(B}$B%^!<%8%D!<%k$,MxMQ2DG=$G$"$j!$$=$l$i$r%+%P!<$9$k$3$H$O$G$-$J(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
332 $B$$!%$=$l$i$O!$MxMQ2DG=$J%W%i%C%H%U%)!<%`$,0[$J$j!$$=$l$>$lD9=j$H<eE@$,0[(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
333 $B$J$k!%$[$H$s$I$,%W%l!<%s%F%-%9%H$r%^!<%8$9$k$h$&$K:n$i$l$F$$$k$,!$FCJL$J(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
334 $B%U%!%$%k%U%)!<%^%C%H!J(BXML$B!K$KFC2=$7$F$$$k$b$N$b$"$k!%(B |
103 | 335 |
365 | 336 %\subsection{A worked example} |
337 \subsection{$B<B9TNc(B} | |
103 | 338 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
339 %In this example, we will reproduce the file modification history of |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
340 %figure~\ref{fig:tour-merge:conflict} above. Let's begin by creating a |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
341 %repository with a base version of our document. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
342 %\interaction{tour-merge-conflict.wife} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
343 %We'll clone the repository and make a change to the file. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
344 %\interaction{tour-merge-conflict.cousin} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
345 %And another clone, to simulate someone else making a change to the |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
346 %file. (This hints at the idea that it's not all that unusual to merge |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
347 %with yourself when you isolate tasks in separate repositories, and |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
348 %indeed to find and resolve conflicts while doing so.) |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
349 %\interaction{tour-merge-conflict.son} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
350 %Having created two different versions of the file, we'll set up an |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
351 %environment suitable for running our merge. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
352 %\interaction{tour-merge-conflict.pull} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
353 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
354 $B$3$NNc$G$OA0=R$N?^(B~\ref{fig:tour-merge:conflict}$B$G$NJQ99MzNr$r:F8=$9$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
355 $BJ8=q$N%Y!<%9%P!<%8%g%s$r4^$`%j%]%8%H%j$r:n@.$9$k$3$H$+$i;O$a$k!%(B |
103 | 356 \interaction{tour-merge-conflict.wife} |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
357 $B%j%]%8%H%j$r%3%T!<$7!$%U%!%$%k$KJQ99$r9T$&!%(B |
103 | 358 \interaction{tour-merge-conflict.cousin} |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
359 $BJL$N?M$,JQ99$r9T$&$N$r%7%_%e%l!<%H$9$k$?$a$K$b$&0l$D$N%/%m!<%s$r:n@.$9(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
360 $B$k!%!JJL!9$N%j%]%8%H%j$K3VN%$7$F9T$C$?:n6H$N7k2L$r%^!<%8$7!$%3%s%U%j%/%H(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
361 $B$r2r>C$9$k$3$H$O>/$7$bDA$7$$$3$H$G$O$J$$$H$$$&;v$,$o$+$k$@$m$&!%(B $B!K(B |
103 | 362 \interaction{tour-merge-conflict.son} |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
363 $B%U%!%$%k$K(B2$B$D$NJL$N%P!<%8%g%s$r:n$j!$%^!<%8$r9T$&$N$KE*2<4D6-$r@_Dj$9$k!%(B |
103 | 364 \interaction{tour-merge-conflict.pull} |
365 | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
366 %In this example, I won't use Mercurial's normal \command{hgmerge} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
367 %program to do the merge, because it would drop my nice automated |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
368 %example-running tool into a graphical user interface. Instead, I'll |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
369 %set \envar{HGMERGE} to tell Mercurial to use the non-interactive |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
370 %\command{merge} command. This is bundled with many Unix-like systems. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
371 %If you're following this example on your computer, don't bother |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
372 %setting \envar{HGMERGE}. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
373 %\interaction{tour-merge-conflict.merge} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
374 %Because \command{merge} can't resolve the conflicting changes, it |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
375 %leaves \emph{merge markers} inside the file that has conflicts, |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
376 %indicating which lines have conflicts, and whether they came from our |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
377 %version of the file or theirs. |
103 | 378 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
379 $B$3$NNc$G$O%^!<%8$K(BMercurial$B$NDL>o%3%^%s%I$G$"$k(B\command{hgmerge}$B$O;H$o$J(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
380 $B$$!%$3$N%3%^%s%I$O<+F02=$5$l$?%0%i%U%#%+%k%f!<%6%$%s%?!<%U%'%$%9$N%^!<%8(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
381 $B%D!<%k$r5/F0$7$F$7$^$&$+$i$G$"$k!%$=$NBe$o$j(B\envar{HGMERGE}$B$r@_Dj$7(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
382 $B$F!$(BMercurial$B$KHsBPOCE*$J(B\command{merge}$B%3%^%s%I$r5/F0$5$;$k!%$3$l$OB?$/(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
383 $B$N(BUnix$B7O%7%9%F%`$K%P%s%I%k$5$l$F$$$k%3%^%s%I$G$"$k!%$3$NNc$r<j85$N%^%7%s(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
384 $B$G<B9T$9$k;~$K$O(B\envar{HGMERGE}$B$r@_Dj$9$kI,MW$O$J$$!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
385 \interaction{tour-merge-conflict.merge} \command{merge}$B%3%^%s%I$O%A%'%s%8(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
386 $B%;%C%H$N%3%s%U%j%/%H$r2r7h$9$k$3$H$O$G$-$:!$(B\emph{merge markers}$B$r%3%s%U(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
387 $B%j%/%H$N$"$k%U%!%$%kFb$K;D$7!$$I$N9T$K%3%s%U%j%/%H$,$"$k$N$+!$%3%s%U%j%/(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
388 $B%H$,<j85$NJQ99$HB>$N?M$NJQ99$N$$$:$l$+$iMh$F$$$k$N$+$r<($9!%(B |
103 | 389 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
390 %Mercurial can tell from the way \command{merge} exits that it wasn't |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
391 %able to merge successfully, so it tells us what commands we'll need to |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
392 %run if we want to redo the merging operation. This could be useful |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
393 %if, for example, we were running a graphical merge tool and quit |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
394 %because we were confused or realised we had made a mistake. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
395 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
396 Mercurial$B$O(B\command{merge}$B%3%^%s%I$G@5$7$/%^!<%8$G$-$J$+$C$?>l9g!$$b$&0l(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
397 $BEY%^!<%8$r9T$&$?$a$K$I$N$h$&$K$9$l$P$$$$$N$+$rI=<($9$k!%$3$l$O!$%0%i%U%#(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
398 $B%+%k%^!<%8%D!<%k$N;HMQCf$K:.Mp$rMh$7$?$+4V0c$$$rHH$7$?$3$H$K5$IU$$$?$?$a(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
399 $B$K=*N;$7$?>l9g$J$I$KM-8z$G$"$m$&!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
400 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
401 %If automatic or manual merges fail, there's nothing to prevent us from |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
402 %``fixing up'' the affected files ourselves, and committing the results |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
403 %of our merge: |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
404 %\interaction{tour-merge-conflict.commit} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
405 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
406 $B<+F0$^$?$O<jF0$K$h$k%^!<%8$,<:GT$7$?>l9g!$1F6A$r<u$1$k%U%!%$%k$r(B``$B=$@5(B'' |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
407 $B$7$F%^!<%8$N7k2L$r%3%_%C%H$7$J$1$l$P$J$i$J$$!%(B |
103 | 408 \interaction{tour-merge-conflict.commit} |
409 | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
410 |
365 | 411 %\section{Simplifying the pull-merge-commit sequence} |
412 \section{pull-merge-commit$B<j=g$r4JC1$K$9$k(B} | |
224
34943a3d50d6
Start writing up extensions. Begin with inotify.
Bryan O'Sullivan <bos@serpentine.com>
parents:
103
diff
changeset
|
413 \label{sec:tour-merge:fetch} |
102 | 414 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
415 %The process of merging changes as outlined above is straightforward, |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
416 %but requires running three commands in sequence. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
417 $BA0@a$G35MW$r=R$Y$?%A%'%s%8%;%C%H$N%^!<%8%W%m%;%9$OC1=c$J$b$N$@$C$?$,!$(B3 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
418 $B$D$N%3%^%s%I$r=g$KMQ$$$kI,MW$,$"$C$?!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
419 |
102 | 420 \begin{codesample2} |
421 hg pull | |
422 hg merge | |
423 hg commit -m 'Merged remote changes' | |
424 \end{codesample2} | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
425 %In the case of the final commit, you also need to enter a commit |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
426 %message, which is almost always going to be a piece of uninteresting |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
427 %``boilerplate'' text. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
428 $B:G8e$N%3%_%C%H$G$O!$$[$H$s$IB`6~$J%\%$%i!<%W%l!<%H%F%-%9%H$H8@$C$F$b$h$$(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
429 $B%3%_%C%H%a%C%;!<%8$NF~NO$bI,MW$G$"$C$?!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
430 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
431 %It would be nice to reduce the number of steps needed, if this were |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
432 %possible. Indeed, Mercurial is distributed with an extension called |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
433 %\hgext{fetch} that does just this. |
102 | 434 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
435 $B2DG=$G$"$l$PI,MW$J%9%F%C%W?t$r>/$J$/$9$k$3$H$,$G$-$k$H$h$$!%<B$O(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
436 Mercurial$B$O(B\hgext{fetch}$B$H$$$&!$$^$5$K$3$N$3$H$r9T$&%(%/%9%F%s%7%g%s$rF1(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
437 $B:-$7$F$$$k!%(B |
102 | 438 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
439 %Mercurial provides a flexible extension mechanism that lets people |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
440 %extend its functionality, while keeping the core of Mercurial small |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
441 %and easy to deal with. Some extensions add new commands that you can |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
442 %use from the command line, while others work ``behind the scenes,'' |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
443 %for example adding capabilities to the server. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
444 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
445 Mercurial$B$O%3%"$r>.$5$/!$07$$$d$9$/J]$C$?$^$^5!G=$r3HD%$G$-$k=@Fp$J%(%96e(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
446 $B%F%s%7%g%s%a%+%K%:%`$rDs6!$7$F$$$k!%%3%^%s%I%i%$%s$+$iMxMQ$G$-$k?7$7$$%3(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
447 $B%^%s%I$rDI2C$9$k$h$&$J%(%/%9%F%s%7%g%s$b$"$l$P!$L\$K8+$($J$$$H$3$m$GNc$((B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
448 $B$P%5!<%P$K5!G=$rDI2C$9$k$h$&$J$b$N$b$"$k!%(B |
102 | 449 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
450 %The \hgext{fetch} extension adds a new command called, not |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
451 %surprisingly, \hgcmd{fetch}. This extension acts as a combination of |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
452 %\hgcmd{pull}, \hgcmd{update} and \hgcmd{merge}. It begins by pulling |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
453 %changes from another repository into the current repository. If it |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
454 %finds that the changes added a new head to the repository, it begins a |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
455 %merge, then commits the result of the merge with an |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
456 %automatically-generated commit message. If no new heads were added, |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
457 %it updates the working directory to the new tip changeset. |
102 | 458 |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
459 \hgext{fetch}$B%(%/%9%F%s%7%g%s$O$=$NL>$NDL$j$N?7$7$$%3%^%s%I(B\hgcmd{fetch} |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
460 $B$rDI2C$9$k!%$3$N%(%/%9%F%s%7%g%s$O(B\hgcmd{pull}$B$H(B\hgcmd{update}$B$*$h$S(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
461 \hgcmd{merge}$B$rAH$_9g$o$;$?F/$-$r$9$k!%$3$N%(%/%9%F%s%7%g%s$O$^$:B>$N%j%](B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
462 $B%8%H%j$+$iJQ99$r(Bpull$B$7!$%j%]%8%H%j$K?7$7$$%X%C%I$,DI2C$5$l$?>l9g$O%^!<%8(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
463 $B$r9T$$!$%^!<%87k2L$r<+F0E*$K@8@.$5$l$?%3%_%C%H%a%C%;!<%8$H6&$K%3%_%C%H$9(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
464 $B$k!%?7$?$J%X%C%I$,DI2C$5$l$J$+$C$?>l9g$O?7$?$J(Btip$B%A%'%s%8%;%C%H$X%o!<%-%s(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
465 $B%0%G%#%l%/%H%j$r99?7$9$k!%(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
466 |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
467 %Enabling the \hgext{fetch} extension is easy. Edit your |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
468 %\sfilename{.hgrc}, and either go to the \rcsection{extensions} section |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
469 %or create an \rcsection{extensions} section. Then add a line that |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
470 %simply reads ``\Verb+fetch +''. |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
471 $B4JC1$K(B\hgext{fetch}$B%(%/%9%F%s%7%g%s$rM-8z$K$9$k$3$H$,$G$-(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
472 $B$k!%(B\sfilename{.hgrc}$B%U%!%$%k$N(B\rcsection{extensions}$B%;%/%7%g%s$rJT=8!JB8(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
473 $B:_$7$J$1$l$PDI2C$9$k!K$7!$(B``\Verb+fetch +''$B$H$$$&9T$rDI2C$9$l$P$h$$!%(B |
102 | 474 \begin{codesample2} |
475 [extensions] | |
476 fetch = | |
477 \end{codesample2} | |
366
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
478 %(Normally, on the right-hand side of the ``\texttt{=}'' would appear |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
479 %the location of the extension, but since the \hgext{fetch} extension |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
480 %is in the standard distribution, Mercurial knows where to search for |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
481 %it.) |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
482 $B!JDL>o!$1&JU$N(B``\texttt{=}''$B$O%(%/%9%F%s%7%g%s$NCV$+$l$?>l=j$rI=$9(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
483 $B$,!$(B\hgext{fetch}$B%(%/%9%F%s%7%g%s$OI8=`G[I[J*$K4^$^$l$k$?$a!$(BMercurial$B$O(B |
4e746f46085c
finished tour-merge.tex
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
365
diff
changeset
|
484 $B$=$N=j:_$r$9$G$KCN$C$F$$$k!%!K(B |
102 | 485 |
365 | 486 %%% Local Variables: |
293
3b1291f24c0d
- replaved latex-mode to yatex-mode
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
290
diff
changeset
|
487 %%% mode: yatex |
84 | 488 %%% TeX-master: "00book" |
365 | 489 %%% End: |