changeset 28:702b05343bf6

Add more network topologies to DVCS slide.
author Martin Geisler <mg@lazybytes.net>
date Mon, 17 Aug 2009 21:39:20 +0200
parents a0326fb9f8ad
children 2f49c373798d 7f9dfcd40d55
files mercurial.tex
diffstat 1 files changed, 16 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial.tex
+++ b/mercurial.tex
@@ -388,19 +388,26 @@
 \begin{frame}{Distributed Revision Control}
   Mercurial duplicates the history on many servers:
   \begin{center}
-    \begin{tikzpicture}[start chain]
+    \begin{tikzpicture}[start chain, bend angle=10]
       \tikzstyle{every node}=[repository, minimum height=18mm, text width=15mm,]
       \tikzstyle{every path}=[<->]
 
-      \node (a) at (4,5) {Alice};
-      \node (l) at (0,6) {Alice's Laptop};
-      \node (b) at (1,1) {Bob};
-      \node (c) at (7,2) {Carla};
+      \node (a) at ( 90:3) {Alice};
+      \node (b) at (210:3) {Bob};
+      \node (c) at (-30:3) {Carla};
+      \draw<1-2> (a) -- (b);
+      \draw<1-2> (b) -- (c);
+      \draw<1-2> (c) -- (a);
 
-      \draw (a) -- (l);
-      \draw (a) -- (b);
-      \draw (b) -- (c);
-      \draw (c) -- (a);
+      \node<2->[overlay] (l) at ([xshift=3cm] a) {Alice's Laptop};
+      \draw<2-> (a) -- (l);
+
+      \node<3-> (r) at (0, 0) {Server};
+      \draw<3-> (a) -- (r);
+      \draw<3-> (b) to[bend left] (r);
+      \draw<3-> (c) to[bend right] (r);
+
+      \draw<4-> (b) to[bend right] (c);
     \end{tikzpicture}
   \end{center}
 \end{frame}