mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
29e22d4bb1
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15920 af4574ff-66df-0310-9fd7-8a98e5e911e0
226 lines
7.6 KiB
XML
226 lines
7.6 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 "4a2dcf2bd9fa11e758d44e481136eab7">
|
|
<!ENTITY mercurial-size "4.1 MB">
|
|
<!ENTITY mercurial-buildsize "47 MB (additional 281 MB for the tests and 2.4MB for docs generation)">
|
|
<!ENTITY mercurial-time "0.1 SBU (additional 2.6 SBU for tests, with -j8)">
|
|
]>
|
|
|
|
<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>
|
|
|
|
&lfs77_checked; &gcc5_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">Mercurial Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="python2"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="cvs"/>,
|
|
<xref linkend="git"/>,
|
|
<xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
|
|
<xref linkend="subversion"/> (with Python bindings),
|
|
<ulink url="https://launchpad.net/bzr">Bazaar</ulink>,
|
|
<ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
|
|
<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>Running the test suite is optional. If there are failures, e.g.
|
|
test-parse-date.t, those tests can be disabled. To test the results in the
|
|
subdiretory <filename class="directory">tests/tmp</filename>, skipping
|
|
failing tests, issue:</para>
|
|
|
|
<screen><userinput>cat > tests/blacklists/failed-tests << "EOF"
|
|
<literal># Test Failures
|
|
test-gpg.t
|
|
test-bundle2-exchange.t</literal>
|
|
EOF
|
|
rm -rf tests/tmp &&
|
|
TESTFLAGS="-j<replaceable><N></replaceable> --tmpdir tmp --blacklist blacklists/failed-tests" \
|
|
make check</userinput></screen>
|
|
|
|
<para>where <replaceable><N></replaceable> is an integer between one
|
|
and the number of processor threads, inclusive. In order to investigate a
|
|
particular apparently failing test, e.g <quote>test-parse-date.t</quote>,
|
|
issue the following commands (notice that omitting <option>--debug</option>
|
|
sometimes modifies the result):</para>
|
|
|
|
<screen><userinput>pushd tests &&
|
|
rm -rf tmp &&
|
|
./run-tests.py --debug --tmpdir tmp test-parse-date.t &&
|
|
popd</userinput></screen>
|
|
|
|
<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>
|
|
|
|
<para>After installed, two very quick and simple tests should run correctly.
|
|
First one needs some configuration:</para>
|
|
|
|
<screen><userinput>cat >> ~/.hgrc << "EOF"
|
|
<literal>[ui]
|
|
username = <user_name> <your@mail></literal>
|
|
EOF</userinput></screen>
|
|
|
|
<para>where you must replace <user_name> and <your@mail> (mail
|
|
is optional and can be omitted). With the user identity defined, run
|
|
<command>hg debuginstall</command> and several lines will be displayed,
|
|
the last one reading "no problems detected". Another quick and simple test
|
|
is just <command>hg</command>, which should output basic commands that can
|
|
be used with <command>hg</command>.</para>
|
|
|
|
</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 &&
|
|
cat > /etc/mercurial/hgrc << "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>
|
|
several internal modules under
|
|
/usr/lib/python&python2-majorver;/site-packages/mercurial
|
|
</seg>
|
|
<seg>
|
|
/etc/mercurial and
|
|
/usr/lib/python&python2-majorver;/site-packages/{hgext,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>
|