source: general/prog/mercurial.xml@ 8a154834

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8a154834 was 8a154834, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to libinput-1.6.1.
Update to git-2.11.1.
Update to ristretto-0.8.2.
Update to mesa-13.0.4.
Update to mercurial-4.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18245 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.2 KB
RevLine 
[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
[28320bf4]7 <!ENTITY mercurial-download-http "https://www.mercurial-scm.org/release/mercurial-&mercurial-version;.tar.gz">
[f5a75ae]8 <!ENTITY mercurial-download-ftp " ">
[8a154834]9 <!ENTITY mercurial-md5sum "59c7072a70c8b41dbde801f935c47aea">
10 <!ENTITY mercurial-size "4.9 MB">
11 <!ENTITY mercurial-buildsize "45 MB (add 348 MB for tests)">
12 <!ENTITY mercurial-time "0.1 SBU (add 16 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
[6a9a5f2]38 &lfs7a_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 <xref linkend="git"/>,
[e803c07e]72 <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
[17f72f6]73 <xref linkend="openssh"/> (runtime, to access ssh://... repositories),
[982e5c9]74 <xref linkend="subversion"/> (with Python bindings),
[b2b0d26]75 <ulink url="https://launchpad.net/bzr">Bazaar</ulink>,
[d1c51434]76 <ulink url="http://www.nongnu.org/cvs/">CVS</ulink>,
[23209a71]77 <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
[982e5c9]78 <ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
79 <ulink url="http://pygments.org/">pygments</ulink>, and
[6c88333]80 <ulink url="https://github.com/pyca/pyopenssl">pyOpenSSL</ulink>
[982e5c9]81
[f5a75ae]82 </para>
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/mercurial"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Mercurial</title>
91
[0d7900a]92 <para>Build <application>Mercurial</application> by issuing the following
[f5a75ae]93 command:</para>
[0d7900a]94
[f5a75ae]95<screen><userinput>make build</userinput></screen>
[0d7900a]96
97 <para>To build the documentation (requires
[f5a75ae]98 <application>Docutils</application>), issue:</para>
99
100<screen><userinput>make doc</userinput></screen>
101
[c1ced74d]102<!-- All tests pass (or are skipped) at version 3.8.2
[2beaab8]103 <para>Running the test suite is optional. Tests which fail may be disabled,
104 adding each one to <filename>tests/blacklists/failed-tests</filename>. In
105 order to execute the test suite using the temporary directory <filename
106 class="directory">tests/tmp</filename> and skipping the failing tests,
[28320bf4]107 issue:</para>
[23209a71]108
[a6e00f8]109<screen><userinput>cat &gt; tests/blacklists/failed-tests &lt;&lt; "EOF"
110<literal># Test Failures
[1b777da]111 test-gpg.t</literal>
[23209a71]112EOF
[c1ced74d]113-->
114 <para>
115 To run the test suite, issue:
116 </para>
117<screen><userinput>rm -rf tests/tmp &amp;&amp;
[2beaab8]118
[73b06df]119TESTFLAGS="-j<replaceable>&lt;N&gt;</replaceable> --tmpdir tmp --blacklist blacklists/failed-tests" \
[23209a71]120make check</userinput></screen>
121
[73b06df]122 <para>where <replaceable>&lt;N&gt;</replaceable> is an integer between one
[16b5a67]123 and the number of ( processor X threads ), inclusive. One test,
124 test-largefiles-update.t, is known to fail. <!-- In order to
[28320bf4]125 investigate the apparently failing tests, you may use the
[c55368ec]126 <command>run-tests.py</command> script. To see the almost forty switches,
[c1ced74d]127 some of them very useful, issue <command>tests/run-tests.py - -help</command>.
[28320bf4]128 Running the following commands, you will execute only the tests that failed
[c1ced74d]129 before:--></para>
130<!--
[2beaab8]131<screen><userinput>pushd tests &amp;&amp;
132 rm -rf tmp &amp;&amp;
133
[c1ced74d]134 ./run-tests.py - -tmpdir tmp test-gpg.t &amp;&amp;
[768e6fd]135popd</userinput></screen>
[f5a75ae]136
[c55368ec]137 <para>Normally, the previous failures will be confirmed. However, if
138 you add the switch
[c1ced74d]139 "- -debug" before "- -tmpdir", and run again, some failures are gone, which
[bd86aa8]140 seems to be a problem with the test suite. If this happens, normally, from
141 now on, there will be no more such failures whether you use the debug switch
142 or not.</para>
[2beaab8]143
[c1ced74d]144 <para>An interesting switch is "- -time", which will generate at the end of
[2beaab8]145 the test suite execution, a table with all executed tests and respective
146 start, end, user, system and real times. Notice that the switches may be
147 used with <command>make check</command>, including them in the
[28320bf4]148 <envar>TESTFLAGS</envar> environment variable.</para>
[c1ced74d]149-->
[73b06df]150 <para>Install <application>Mercurial</application> by running the following
151 command (as <systemitem class="username">root</systemitem>):</para>
[f5a75ae]152
153<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
154
[73b06df]155 <para>If you built the documentation, install it by running the following
156 command (as <systemitem class="username">root</systemitem>):</para>
[f5a75ae]157
158<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
159
[ab0c555]160 <para>After installed, two very quick and simple tests should run correctly.
161 First one needs some configuration:</para>
162
163<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
164<literal>[ui]
[2beaab8]165username = <replaceable>&lt;user_name&gt; &lt;user@mail&gt;</replaceable></literal>
[ab0c555]166EOF</userinput></screen>
167
168 <para>where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
[a407a1c]169 is optional and can be omitted). With the user identity defined, run
[7b88d5a]170 <command>hg debuginstall</command> and several lines will be displayed,
[ab0c555]171 the last one reading "no problems detected". Another quick and simple test
172 is just <command>hg</command>, which should output basic commands that can
173 be used with <command>hg</command>.</para>
174
[f5a75ae]175 </sect2>
176
[431b5b17]177 <sect2 role="configuration">
178 <title>Configuring Mercurial</title>
179
180 <sect3 id="mercurial-config">
181 <title>Config Files</title>
182
183 <para>
[28320bf4]184 <filename>/etc/mercurial/hgrc</filename> and
185 <filename>~/.hgrc</filename>
[431b5b17]186 </para>
187
188 <indexterm zone="mercurial mercurial-config">
189 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
190 </indexterm>
191
[28320bf4]192 <indexterm zone="mercurial mercurial-config">
193 <primary sortas="e-AA.hgrc">~/.hgrc</primary>
194 </indexterm>
195
[2beaab8]196 <para>The great majority of extensions are disabled by default. Run
197 <command>hg help extensions</command> if you need to enable any, e.g.
198 when investigating test failures. You will obtain the lists of enabled and
199 disabled extensions, and more information, such as how to enable or
200 disable them using configuration files.</para>
[28320bf4]201
[2beaab8]202 <para>If you have installed the <xref linkend="cacerts"/> and want
203 <application>Mercurial</application> to use them, as the <systemitem
204 class="username">root</systemitem> user, issue:</para>
[431b5b17]205
206<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
[2beaab8]207cat &gt;&gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
[431b5b17]208<literal>[web]
209cacerts = /etc/ssl/ca-bundle.crt</literal>
210EOF</userinput></screen>
211
212 </sect3>
213
214 </sect2>
215
[f5a75ae]216 <sect2 role="content">
217 <title>Contents</title>
218
219 <segmentedlist>
220 <segtitle>Installed Programs</segtitle>
221 <segtitle>Installed Libraries</segtitle>
222 <segtitle>Installed Directories</segtitle>
223
224 <seglistitem>
[8ad9b196]225 <seg>
226 hg
227 </seg>
228 <seg>
229 several internal modules under
230 /usr/lib/python&python2-majorver;/site-packages/mercurial
231 </seg>
232 <seg>
[9c4ca99]233 /etc/mercurial and
[2bbb3379]234 /usr/lib/python&python2-majorver;/site-packages/{hgext,hgext3rd,mercurial}
[8ad9b196]235 </seg>
[f5a75ae]236 </seglistitem>
237 </segmentedlist>
238
239 <variablelist>
240 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
241 <?dbfo list-presentation="list"?>
242 <?dbhtml list-presentation="table"?>
243
244 <varlistentry id="hg">
245 <term><command>hg</command></term>
246 <listitem>
247 <para>is the program file for mercurial.</para>
248 <indexterm zone="mercurial hg">
249 <primary sortas="b-hg">hg</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 </variablelist>
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.