[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 " ">
|
---|
[e803c07e] | 9 | <!ENTITY mercurial-md5sum "55f6ea5982cf87836113376174826e8c">
|
---|
| 10 | <!ENTITY mercurial-size "3.6 MB">
|
---|
| 11 | <!ENTITY mercurial-buildsize "43 MB">
|
---|
| 12 | <!ENTITY mercurial-time "0.1 SBU (additional 12 SBU for tests)">
|
---|
[f5a75ae] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="mercurial" xreflabel="mercurial-&mercurial-version;">
|
---|
| 16 | <?dbhtml filename="mercurial.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>mercurial-&mercurial-version;</title>
|
---|
| 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 |
|
---|
[d81f997] | 38 | &lfs73_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 | <!--
|
---|
| 63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 64 | <itemizedlist spacing='compact'>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Recommended patch: <ulink
|
---|
| 67 | url="&patch-root;/mercurial-&mercurial-version;-1.patch"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 | -->
|
---|
[0d7900a] | 71 |
|
---|
[f5a75ae] | 72 | <bridgehead renderas="sect3">Mercurial Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
| 76 | <xref linkend="python2"/>
|
---|
| 77 | </para>
|
---|
[0d7900a] | 78 |
|
---|
[f5a75ae] | 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 80 | <para role="optional">
|
---|
[982e5c9] | 81 | <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
|
---|
| 82 | <xref linkend="git"/>,
|
---|
[e803c07e] | 83 | <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
|
---|
[982e5c9] | 84 | <xref linkend="subversion"/> (with Python bindings),
|
---|
[792be78] | 85 | <xref linkend="bazaar"/>,
|
---|
| 86 | <xref linkend="cvs"/>,
|
---|
[982e5c9] | 87 | <ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
|
---|
| 88 | <ulink url="http://pygments.org/">pygments</ulink>, and
|
---|
| 89 | <ulink url="https://launchpad.net/pyopenssl">pyOpenSSL</ulink>
|
---|
| 90 |
|
---|
[f5a75ae] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">User Notes:
|
---|
| 94 | <ulink url="&blfs-wiki;/mercurial"/></para>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of Mercurial</title>
|
---|
| 100 |
|
---|
[0d7900a] | 101 | <para>Build <application>Mercurial</application> by issuing the following
|
---|
[f5a75ae] | 102 | command:</para>
|
---|
[0d7900a] | 103 |
|
---|
[f5a75ae] | 104 | <screen><userinput>make build</userinput></screen>
|
---|
[0d7900a] | 105 |
|
---|
| 106 | <para>To build the documentation (requires
|
---|
[f5a75ae] | 107 | <application>Docutils</application>), issue:</para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput>make doc</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 112 |
|
---|
| 113 | <para>Install <application>Mercurial</application> by running
|
---|
| 114 | the following command (as <systemitem class="username">root</systemitem>):</para>
|
---|
| 115 |
|
---|
| 116 | <screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
|
---|
| 117 |
|
---|
| 118 | <para>If you built the documentation, install it by running
|
---|
| 119 | the following command (as <systemitem class="username">root</systemitem>):</para>
|
---|
| 120 |
|
---|
| 121 | <screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
[431b5b17] | 125 | <sect2 role="configuration">
|
---|
| 126 | <title>Configuring Mercurial</title>
|
---|
| 127 |
|
---|
| 128 | <sect3 id="mercurial-config">
|
---|
| 129 | <title>Config Files</title>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | <filename>/etc/mercurial/hgrc</filename>
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <indexterm zone="mercurial mercurial-config">
|
---|
| 136 | <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | If you have installed the <xref linkend="cacerts"/> and you want
|
---|
| 141 | <application>Mercurial</application> to use them, as the
|
---|
| 142 | <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>install -v -d -m755 /etc/mercurial &&
|
---|
| 146 | cat > /etc/mercurial/hgrc << "EOF"
|
---|
| 147 | <literal>[web]
|
---|
| 148 | cacerts = /etc/ssl/ca-bundle.crt</literal>
|
---|
| 149 | EOF</userinput></screen>
|
---|
| 150 |
|
---|
| 151 | </sect3>
|
---|
| 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
[f5a75ae] | 155 | <sect2 role="content">
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
| 158 | <segmentedlist>
|
---|
| 159 | <segtitle>Installed Programs</segtitle>
|
---|
| 160 | <segtitle>Installed Libraries</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
| 164 | <seg>hg</seg>
|
---|
| 165 | <seg>none</seg>
|
---|
[431b5b17] | 166 | <seg>/etc/mercurial, /usr/lib/python2.7/site-packages/hgext and
|
---|
[028759b] | 167 | /usr/lib/python2.7/site-packages/mercurial</seg>
|
---|
[f5a75ae] | 168 | </seglistitem>
|
---|
| 169 | </segmentedlist>
|
---|
| 170 |
|
---|
| 171 | <variablelist>
|
---|
| 172 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 173 | <?dbfo list-presentation="list"?>
|
---|
| 174 | <?dbhtml list-presentation="table"?>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="hg">
|
---|
| 177 | <term><command>hg</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>is the program file for mercurial.</para>
|
---|
| 180 | <indexterm zone="mercurial hg">
|
---|
| 181 | <primary sortas="b-hg">hg</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | </variablelist>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|