view key-commands.tex @ 305:1df5191d8e80

Fix front page
author Martin Geisler <mg@aragost.com>
date Wed, 08 Jun 2011 22:50:54 +0200 (2011-06-08)
parents 7f2f119a584c
children
line wrap: on
line source
\begin{frame}{Key Mercurial Commands}
  \begin{tikzpicture}
    \tikzstyle{repository}+=[minimum height=18mm, text width=15mm]

    \node[repository] (a) {};
    \node[working copy, left=2cm of a] (working copy) {hello.c\\Makefile};
    \draw[short, ->] (working copy) to[bend left=10] node[above] {commit} (a);
    \draw[short, ->] (a) to[bend left=10] node[below] {update} (working copy);

    \begin{pgfonlayer}{background}
      \node[label=below:Alice, highlight, fit=(a) (working copy)] {};
    \end{pgfonlayer}

    \node<2>[repository, right=2cm of a] (repository) {};
    \draw<2>[short, ->] (a) to[bend left=10] node[above] {push} (repository);
    \draw<2>[short, ->] (repository) to[bend left=10] node[below] {pull} (a);
  \end{tikzpicture}

  Local commands:
  \begin{itemize}
  \item \cmd{hg commit}: save a snapshot into the current repository
  \item \cmd{hg update}: checkout revision into working directory
  \item \cmd{hg merge}: join different lines of history
  \end{itemize}

  \pause

  Network commands:
  \begin{itemize}
  \item \cmd{hg pull}: retrieve changesets from another repository
  \item \cmd{hg push}: send your changesets to another repository
  \end{itemize}
\end{frame}