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