|
84
|
1 \chapter{A lightning tour of Mercurial}
|
|
|
2 \label{chap:tour}
|
|
|
3
|
|
|
4 \section{Installing Mercurial on your system}
|
|
|
5 \label{sec:tour:install}
|
|
|
6
|
|
|
7 \subsection{Linux}
|
|
|
8
|
|
|
9 All major Linux distributions provide a prebuilt Mercurial package.
|
|
|
10 Because each Linux distribution has its own packaging tools, policies,
|
|
|
11 and rate of development, it's difficult to give a comprehensive set of
|
|
|
12 instructions on how to install Mercurial binaries, and the version of
|
|
|
13 Mercurial that you will end up with can vary widely.
|
|
|
14
|
|
|
15 To keep things simple, I will focus on installing Mercurial from the
|
|
|
16 command line under the most popular Linux distributions. Most of
|
|
|
17 these distributions provide graphical package managers that will let
|
|
|
18 you install Mercurial with a single click; the package name to look
|
|
|
19 for is \texttt{mercurial}.
|
|
|
20
|
|
|
21 \subsubsection{Debian}
|
|
|
22
|
|
|
23 \begin{codesample2}
|
|
|
24 apt-get install mercurial
|
|
|
25 \end{codesample2}
|
|
|
26
|
|
|
27 \subsubsection{Fedora Core}
|
|
|
28
|
|
|
29 \begin{codesample2}
|
|
|
30 yum install mercurial
|
|
|
31 \end{codesample2}
|
|
|
32
|
|
|
33 \subsubsection{Gentoo}
|
|
|
34
|
|
|
35 \begin{codesample2}
|
|
|
36 emerge mercurial
|
|
|
37 \end{codesample2}
|
|
|
38
|
|
|
39 \subsubsection{OpenSUSE}
|
|
|
40
|
|
|
41 \begin{codesample2}
|
|
|
42 yum install mercurial
|
|
|
43 \end{codesample2}
|
|
|
44
|
|
|
45 \subsubsection{Ubuntu}
|
|
|
46
|
|
|
47 \begin{codesample2}
|
|
|
48 apt-get install mercurial
|
|
|
49 \end{codesample2}
|
|
|
50
|
|
|
51 \subsection{Mac OS X}
|
|
|
52
|
|
|
53 Lee Cantey publishes an installer of Mercurial for Mac OS~X at
|
|
|
54 \url{http://mercurial.berkwood.com}. This package works on both
|
|
|
55 Intel- and Power-based Macs, but requires you to install Universal
|
|
|
56 Python before you can use it. This is easy to do; simply follow the
|
|
|
57 instructions on Lee's site.
|
|
|
58
|
|
|
59 \subsection{Solaris}
|
|
|
60
|
|
|
61 XXX.
|
|
|
62
|
|
|
63 \subsection{Windows}
|
|
|
64
|
|
|
65 Lee Cantey publishes an installer of Mercurial for Windows at
|
|
|
66 \url{http://mercurial.berkwood.com}. This package has no external
|
|
|
67 dependencies; it ``just works''.
|
|
|
68
|
|
|
69 \begin{note}
|
|
|
70 The Windows version of Mercurial does not automatically convert line
|
|
|
71 endings between Windows and Unix styles. If you want to share work
|
|
|
72 with Unix users, you must do a little additional configuration
|
|
|
73 work. XXX Flesh this out.
|
|
|
74 \end{note}
|
|
|
75
|
|
|
76 %%% Local Variables:
|
|
|
77 %%% mode: latex
|
|
|
78 %%% TeX-master: "00book"
|
|
|
79 %%% End:
|