glfs/general/prog/mercurial.xml
Ken Moffat dd6a9c497c A few more tags, and tweak wording in audacious.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11714 af4574ff-66df-0310-9fd7-8a98e5e911e0
2013-08-28 17:40:10 +00:00

191 lines
6.0 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY mercurial-download-http "http://mercurial.selenic.com/release/mercurial-&mercurial-version;.tar.gz">
<!ENTITY mercurial-download-ftp " ">
<!ENTITY mercurial-md5sum "61093c08ca5d8d1310382d17764f0c43">
<!ENTITY mercurial-size "3.6 MB">
<!ENTITY mercurial-buildsize "43 MB">
<!ENTITY mercurial-time "0.1 SBU (additional 12 SBU for tests)">
]>
<sect1 id="mercurial" xreflabel="Mercurial-&mercurial-version;">
<?dbhtml filename="mercurial.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Mercurial-&mercurial-version;</title>
<indexterm zone="mercurial">
<primary sortas="a-mercurial">mercurial</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Mercurial</title>
<para><application>Mercurial</application> is a distributed source control
management tool similar to <application>Git</application> and
<application>Bazaar</application>. <application>Mercurial</application> is
written in <application>Python</application> and is used by projects such as
Mozilla and Vim.</para>
&lfs74_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&mercurial-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&mercurial-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &mercurial-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &mercurial-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &mercurial-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &mercurial-time;</para>
</listitem>
</itemizedlist>
<!--
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<listitem>
<para>Recommended patch: <ulink
url="&patch-root;/mercurial-&mercurial-version;-1.patch"/></para>
</listitem>
</itemizedlist>
-->
<bridgehead renderas="sect3">Mercurial Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="python2"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
<xref linkend="git"/>,
<xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
<xref linkend="subversion"/> (with Python bindings),
<xref linkend="bazaar"/>,
<xref linkend="cvs"/>,
<ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
<ulink url="http://pygments.org/">pygments</ulink>, and
<ulink url="https://launchpad.net/pyopenssl">pyOpenSSL</ulink>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/mercurial"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Mercurial</title>
<para>Build <application>Mercurial</application> by issuing the following
command:</para>
<screen><userinput>make build</userinput></screen>
<para>To build the documentation (requires
<application>Docutils</application>), issue:</para>
<screen><userinput>make doc</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Install <application>Mercurial</application> by running
the following command (as <systemitem class="username">root</systemitem>):</para>
<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
<para>If you built the documentation, install it by running
the following command (as <systemitem class="username">root</systemitem>):</para>
<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
</sect2>
<sect2 role="configuration">
<title>Configuring Mercurial</title>
<sect3 id="mercurial-config">
<title>Config Files</title>
<para>
<filename>/etc/mercurial/hgrc</filename>
</para>
<indexterm zone="mercurial mercurial-config">
<primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
</indexterm>
<para>
If you have installed the <xref linkend="cacerts"/> and you want
<application>Mercurial</application> to use them, as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
<literal>[web]
cacerts = /etc/ssl/ca-bundle.crt</literal>
EOF</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>hg</seg>
<seg>none</seg>
<seg>/etc/mercurial, /usr/lib/python2.7/site-packages/hgext and
/usr/lib/python2.7/site-packages/mercurial</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="hg">
<term><command>hg</command></term>
<listitem>
<para>is the program file for mercurial.</para>
<indexterm zone="mercurial hg">
<primary sortas="b-hg">hg</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>