comparison ja/concepts.tex @ 294:b2d447356c42

- completed cmdref.tex - minor temporal changes.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 08 Feb 2008 01:41:42 +0900
parents 3b1291f24c0d
children 93d19b27859c
comparison
equal deleted inserted replaced
293:3b1291f24c0d 294:b2d447356c42
36 that tracks its history in the repository is illustrated in 36 that tracks its history in the repository is illustrated in
37 figure~\ref{fig:concepts:filelog}. 37 figure~\ref{fig:concepts:filelog}.
38 38
39 \begin{figure}[ht] 39 \begin{figure}[ht]
40 \centering 40 \centering
41 \grafix{filelog} 41 % \grafix{filelog}
42 \includegraphics{filelog}
42 \caption{Relationships between files in working directory and 43 \caption{Relationships between files in working directory and
43 filelogs in repository} 44 filelogs in repository}
44 \label{fig:concepts:filelog} 45 \label{fig:concepts:filelog}
45 \end{figure} 46 \end{figure}
46 47
74 when that changeset was created. These relationships are illustrated 75 when that changeset was created. These relationships are illustrated
75 in figure~\ref{fig:concepts:metadata}. 76 in figure~\ref{fig:concepts:metadata}.
76 77
77 \begin{figure}[ht] 78 \begin{figure}[ht]
78 \centering 79 \centering
79 \grafix{metadata} 80 \includegraphics{metadata}
80 \caption{Metadata relationships} 81 \caption{Metadata relationships}
81 \label{fig:concepts:metadata} 82 \label{fig:concepts:metadata}
82 \end{figure} 83 \end{figure}
83 84
84 As the illustration shows, there is \emph{not} a ``one to one'' 85 As the illustration shows, there is \emph{not} a ``one to one''
141 revisions you must read, hence the longer it takes to reconstruct a 142 revisions you must read, hence the longer it takes to reconstruct a
142 particular revision. 143 particular revision.
143 144
144 \begin{figure}[ht] 145 \begin{figure}[ht]
145 \centering 146 \centering
146 \grafix{snapshot} 147 \includegraphics{snapshot}
147 \caption{Snapshot of a revlog, with incremental deltas} 148 \caption{Snapshot of a revlog, with incremental deltas}
148 \label{fig:concepts:snapshot} 149 \label{fig:concepts:snapshot}
149 \end{figure} 150 \end{figure}
150 151
151 The innovation that Mercurial applies to this problem is simple but 152 The innovation that Mercurial applies to this problem is simple but
227 branches. A revision that represents a merge between branches has two 228 branches. A revision that represents a merge between branches has two
228 normal revision IDs in its parent slots. 229 normal revision IDs in its parent slots.
229 230
230 \begin{figure}[ht] 231 \begin{figure}[ht]
231 \centering 232 \centering
232 \grafix{revlog} 233 \includegraphics{revlog}
233 \caption{} 234 \caption{}
234 \label{fig:concepts:revlog} 235 \label{fig:concepts:revlog}
235 \end{figure} 236 \end{figure}
236 237
237 \section{The working directory} 238 \section{The working directory}
268 purposes. Mercurial uses the parents of the dirstate as \emph{the 269 purposes. Mercurial uses the parents of the dirstate as \emph{the
269 parents of a new changeset} when you perform a commit. 270 parents of a new changeset} when you perform a commit.
270 271
271 \begin{figure}[ht] 272 \begin{figure}[ht]
272 \centering 273 \centering
273 \grafix{wdir} 274 \includegraphics{wdir}
274 \caption{The working directory can have two parents} 275 \caption{The working directory can have two parents}
275 \label{fig:concepts:wdir} 276 \label{fig:concepts:wdir}
276 \end{figure} 277 \end{figure}
277 278
278 Figure~\ref{fig:concepts:wdir} shows the normal state of the working 279 Figure~\ref{fig:concepts:wdir} shows the normal state of the working
280 is the \emph{tip}, the newest changeset in the repository that has no 281 is the \emph{tip}, the newest changeset in the repository that has no
281 children. 282 children.
282 283
283 \begin{figure}[ht] 284 \begin{figure}[ht]
284 \centering 285 \centering
285 \grafix{wdir-after-commit} 286 \includegraphics{wdir-after-commit}
286 \caption{The working directory gains new parents after a commit} 287 \caption{The working directory gains new parents after a commit}
287 \label{fig:concepts:wdir-after-commit} 288 \label{fig:concepts:wdir-after-commit}
288 \end{figure} 289 \end{figure}
289 290
290 It's useful to think of the working directory as ``the changeset I'm 291 It's useful to think of the working directory as ``the changeset I'm
313 committed that changeset. The effect of this is shown in 314 committed that changeset. The effect of this is shown in
314 figure~\ref{fig:concepts:wdir-pre-branch}. 315 figure~\ref{fig:concepts:wdir-pre-branch}.
315 316
316 \begin{figure}[ht] 317 \begin{figure}[ht]
317 \centering 318 \centering
318 \grafix{wdir-pre-branch} 319 \includegraphics{wdir-pre-branch}
319 \caption{The working directory, updated to an older changeset} 320 \caption{The working directory, updated to an older changeset}
320 \label{fig:concepts:wdir-pre-branch} 321 \label{fig:concepts:wdir-pre-branch}
321 \end{figure} 322 \end{figure}
322 323
323 Having updated the working directory to an older changeset, what 324 Having updated the working directory to an older changeset, what
329 \emph{heads}. You can see the structure that this creates in 330 \emph{heads}. You can see the structure that this creates in
330 figure~\ref{fig:concepts:wdir-branch}. 331 figure~\ref{fig:concepts:wdir-branch}.
331 332
332 \begin{figure}[ht] 333 \begin{figure}[ht]
333 \centering 334 \centering
334 \grafix{wdir-branch} 335 \includegraphics{wdir-branch}
335 \caption{After a commit made while synced to an older changeset} 336 \caption{After a commit made while synced to an older changeset}
336 \label{fig:concepts:wdir-branch} 337 \label{fig:concepts:wdir-branch}
337 \end{figure} 338 \end{figure}
338 339
339 \begin{note} 340 \begin{note}
361 to the changeset you're merging with, as shown in 362 to the changeset you're merging with, as shown in
362 figure~\ref{fig:concepts:wdir-merge}. 363 figure~\ref{fig:concepts:wdir-merge}.
363 364
364 \begin{figure}[ht] 365 \begin{figure}[ht]
365 \centering 366 \centering
366 \grafix{wdir-merge} 367 \includegraphics{wdir-merge}
367 \caption{Merging two heads} 368 \caption{Merging two heads}
368 \label{fig:concepts:wdir-merge} 369 \label{fig:concepts:wdir-merge}
369 \end{figure} 370 \end{figure}
370 371
371 Mercurial also has to modify the working directory, to merge the files 372 Mercurial also has to modify the working directory, to merge the files