[f5a75ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY mercurial-download-http "http://mercurial.selenic.com/release/mercurial-&mercurial-version;.tar.gz">
|
---|
| 8 | <!ENTITY mercurial-download-ftp " ">
|
---|
[43d0360] | 9 | <!ENTITY mercurial-md5sum "76b565f48000e9f331356ab107a5bcbb">
|
---|
[5561ec7] | 10 | <!ENTITY mercurial-size "3.7 MB">
|
---|
[e803c07e] | 11 | <!ENTITY mercurial-buildsize "43 MB">
|
---|
| 12 | <!ENTITY mercurial-time "0.1 SBU (additional 12 SBU for tests)">
|
---|
[f5a75ae] | 13 | ]>
|
---|
| 14 |
|
---|
[263da2b] | 15 | <sect1 id="mercurial" xreflabel="Mercurial-&mercurial-version;">
|
---|
[f5a75ae] | 16 | <?dbhtml filename="mercurial.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[263da2b] | 23 | <title>Mercurial-&mercurial-version;</title>
|
---|
[f5a75ae] | 24 |
|
---|
| 25 | <indexterm zone="mercurial">
|
---|
| 26 | <primary sortas="a-mercurial">mercurial</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Mercurial</title>
|
---|
| 31 |
|
---|
[0d7900a] | 32 | <para><application>Mercurial</application> is a distributed source control
|
---|
[e803c07e] | 33 | management tool similar to <application>Git</application> and
|
---|
| 34 | <application>Bazaar</application>. <application>Mercurial</application> is
|
---|
| 35 | written in <application>Python</application> and is used by projects such as
|
---|
| 36 | Mozilla and Vim.</para>
|
---|
[f5a75ae] | 37 |
|
---|
[dd6a9c4] | 38 | &lfs74_checked;
|
---|
[f5a75ae] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&mercurial-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&mercurial-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &mercurial-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &mercurial-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &mercurial-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &mercurial-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Mercurial Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 65 | <para role="required">
|
---|
| 66 | <xref linkend="python2"/>
|
---|
| 67 | </para>
|
---|
[0d7900a] | 68 |
|
---|
[f5a75ae] | 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 70 | <para role="optional">
|
---|
[982e5c9] | 71 | <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
|
---|
| 72 | <xref linkend="git"/>,
|
---|
[e803c07e] | 73 | <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
|
---|
[982e5c9] | 74 | <xref linkend="subversion"/> (with Python bindings),
|
---|
[792be78] | 75 | <xref linkend="bazaar"/>,
|
---|
| 76 | <xref linkend="cvs"/>,
|
---|
[982e5c9] | 77 | <ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
|
---|
| 78 | <ulink url="http://pygments.org/">pygments</ulink>, and
|
---|
| 79 | <ulink url="https://launchpad.net/pyopenssl">pyOpenSSL</ulink>
|
---|
| 80 |
|
---|
[f5a75ae] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <para condition="html" role="usernotes">User Notes:
|
---|
| 84 | <ulink url="&blfs-wiki;/mercurial"/></para>
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of Mercurial</title>
|
---|
| 90 |
|
---|
[0d7900a] | 91 | <para>Build <application>Mercurial</application> by issuing the following
|
---|
[f5a75ae] | 92 | command:</para>
|
---|
[0d7900a] | 93 |
|
---|
[f5a75ae] | 94 | <screen><userinput>make build</userinput></screen>
|
---|
[0d7900a] | 95 |
|
---|
| 96 | <para>To build the documentation (requires
|
---|
[f5a75ae] | 97 | <application>Docutils</application>), issue:</para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput>make doc</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 102 |
|
---|
| 103 | <para>Install <application>Mercurial</application> by running
|
---|
| 104 | the following command (as <systemitem class="username">root</systemitem>):</para>
|
---|
| 105 |
|
---|
| 106 | <screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>If you built the documentation, install it by running
|
---|
| 109 | the following command (as <systemitem class="username">root</systemitem>):</para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
[431b5b17] | 115 | <sect2 role="configuration">
|
---|
| 116 | <title>Configuring Mercurial</title>
|
---|
| 117 |
|
---|
| 118 | <sect3 id="mercurial-config">
|
---|
| 119 | <title>Config Files</title>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | <filename>/etc/mercurial/hgrc</filename>
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <indexterm zone="mercurial mercurial-config">
|
---|
| 126 | <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | If you have installed the <xref linkend="cacerts"/> and you want
|
---|
| 131 | <application>Mercurial</application> to use them, as the
|
---|
| 132 | <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <screen role="root"><userinput>install -v -d -m755 /etc/mercurial &&
|
---|
| 136 | cat > /etc/mercurial/hgrc << "EOF"
|
---|
| 137 | <literal>[web]
|
---|
| 138 | cacerts = /etc/ssl/ca-bundle.crt</literal>
|
---|
| 139 | EOF</userinput></screen>
|
---|
| 140 |
|
---|
| 141 | </sect3>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
[f5a75ae] | 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
| 151 | <segtitle>Installed Directories</segtitle>
|
---|
| 152 |
|
---|
| 153 | <seglistitem>
|
---|
| 154 | <seg>hg</seg>
|
---|
| 155 | <seg>none</seg>
|
---|
[431b5b17] | 156 | <seg>/etc/mercurial, /usr/lib/python2.7/site-packages/hgext and
|
---|
[028759b] | 157 | /usr/lib/python2.7/site-packages/mercurial</seg>
|
---|
[f5a75ae] | 158 | </seglistitem>
|
---|
| 159 | </segmentedlist>
|
---|
| 160 |
|
---|
| 161 | <variablelist>
|
---|
| 162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 163 | <?dbfo list-presentation="list"?>
|
---|
| 164 | <?dbhtml list-presentation="table"?>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="hg">
|
---|
| 167 | <term><command>hg</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>is the program file for mercurial.</para>
|
---|
| 170 | <indexterm zone="mercurial hg">
|
---|
| 171 | <primary sortas="b-hg">hg</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | </variablelist>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | </sect1>
|
---|