169
|
1 \begin{frame}{Pull Workflow} |
|
2 \tikzstyle{rev}+=[on chain, minimum size=5mm, font=\small] |
|
3 \tikzstyle{a}=[rev, draw=yellow!50!black!50, bottom color=yellow!50!black!20] |
|
4 \tikzstyle{b}=[rev, draw=green!30!black!50, bottom color=green!30!black!20] |
|
5 \tikzstyle{c}=[rev, draw=blue!50!black!50, bottom color=blue!50!black!20] |
|
6 \tikzstyle{join-above}=[out=0, in=240] |
|
7 \tikzstyle{join-below}=[out=-90, in=180] |
|
8 \tikzset{node distance=8mm and 10mm, on grid} |
|
9 |
|
10 People have read-only access (e.g., \cmd{hg serve}): |
|
11 \medskip |
|
12 |
|
13 \begin{tikzpicture} |
|
14 \begin{scope}[start chain=alice] |
|
15 \node[rev,on chain,label=above:Alice] {0}; |
|
16 \begin{scope}[start branch=bob] |
|
17 \node<5->[b,on chain=going below right, join=by join-below] {1}; |
|
18 \end{scope} |
|
19 \node<2->[a,join] {1}; |
|
20 \node<3->[a,join] {2}; |
|
21 \node<6->[a,join,join=with alice/bob-end by join-above] {3}; |
|
22 \end{scope} |
|
23 |
|
24 \begin{scope}[start chain=bob, shift={(6, 0)}] |
|
25 \node[rev,label=above:Bob] {0}; |
|
26 \node<4->[b,join] {1}; |
|
27 \end{scope} |
|
28 |
|
29 \begin{scope}[start chain=carla, shift={(2, -3)}] |
|
30 \node[rev,label=above:Carla] {0}; |
|
31 \begin{scope}[start branch=bob] |
|
32 \node<9->[b,on chain=going below right, join=by join-below] {1}; |
|
33 \end{scope} |
|
34 \begin{scope}[start branch=alice] |
|
35 \node<11->[a,join=by join-below,below=of carla/bob-2] {1}; |
|
36 \node<11->[a,join] {2}; |
|
37 \node<11->[a,join,join=with carla/bob-end by {out=0, in=120}] {3}; |
|
38 \end{scope} |
|
39 |
|
40 \node<7->[c,join] {1}; |
|
41 \node<8->[c,join] {2}; |
|
42 \node<10->[c,join] {3}; |
|
43 \node<12->[c,join, join=with carla/alice-end by {out=0, in=-90}] {4}; |
|
44 |
|
45 \node<1-5>[fit=(alice-begin) (alice-end)] (A) {}; |
|
46 \node<6->[fit=(alice-begin) (alice-end) (alice/bob-end)] (A) {}; |
|
47 \node[fit=(bob-begin) (bob-end)] (B) {}; |
|
48 \node[fit=(carla-begin) (carla-end)] (C) {}; |
|
49 |
|
50 \tikzstyle{every path}=[->, short] |
|
51 \draw<5> (B) -- node[below] {\cmd{pull}} (A); |
|
52 \draw<9> (B) -- node[below right] {\cmd{pull}} (C); |
|
53 \draw<11> (A) -- node[above right] {\cmd{pull}} (C); |
|
54 \end{scope} |
|
55 \end{tikzpicture} |
|
56 \end{frame} |