Mercurial > hg > mercurial-talk
changeset 51:5b82ca0b9979
Simplify commit chains inside repository.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 21 Aug 2009 00:20:05 +0200 |
parents | 5eba2b279ee9 |
children | 0d976d0d0e9f |
files | mercurial.tex |
diffstat | 1 files changed, 17 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial.tex +++ b/mercurial.tex @@ -123,17 +123,17 @@ \bigskip - \begin{tikzpicture} - \begin{scope}[start chain] - \node<2->[on chain,left] at (0, 0.5) {hello.c}; - \node<3->[on chain,xshift=-8mm, rev] {}; - \node<4->[on chain,join,rev] {}; - \node<5->[on chain,join,rev] {}; + \begin{tikzpicture}[node distance=5mm] + \begin{scope}[start chain=hello] + \node<2->[on chain,rev,,label=left:hello.c:] {}; + \node<3->[on chain,rev,join] {}; + \node<4->[on chain,rev,join] {}; + \node<6->[on chain,rev,join] {}; \end{scope} \begin{scope}[start chain] - \node<2->[on chain,left] at (0, 0) {Makefile}; - \node<3->[on chain,xshift=-8mm,rev] {}; - \node<6->[on chain,join,rev] {}; + \node<2->[on chain,rev,label=left:Makefile:,below=of hello-begin] {}; + \node<5->[on chain,rev,join] {}; + \node<7->[on chain,rev,join] {}; \end{scope} \end{tikzpicture} \end{frame} @@ -150,7 +150,7 @@ \begin{center} \begin{tikzpicture} - \begin{scope}[start chain, node distance=16mm] + \begin{scope}[start chain, node distance=18mm] \node[working copy, on chain, label=above:Alice] (Alice) {hello.c\\ Makefile}; \node[repository, on chain, label=above:CVS Server] (repository) {}; @@ -158,18 +158,15 @@ {hello.c\\ Makefile}; \end{scope} - \begin{scope}[scale=0.5,transform shape] - \begin{scope}[start chain] - \node[on chain,left, yshift=3mm, xshift=-2mm] at (repository) - {hello.c}; - \node[on chain,xshift=-8mm,rev] {}; - \node[on chain,join,rev] {}; + \begin{scope}[scale=0.5,transform shape, node distance=5mm, + shift=(repository.center), yshift=4mm, xshift=3mm] + \begin{scope}[start chain=hello] + \node[on chain,rev,,label=left:hello.c:] {}; + \node[on chain,rev,join] {}; \end{scope} \begin{scope}[start chain] - \node[on chain,left, yshift=-3mm, xshift=-2mm] at (repository) - {Makefile}; - \node[on chain,xshift=-8mm,rev] {}; - \node<3->[on chain,join,rev] {}; + \node[on chain,rev,label=left:Makefile:,below=of hello-begin] {}; + \node<3->[on chain,rev,join] {}; \end{scope} \end{scope}