source: general/prog/mercurial.xml@ 6c73ed0

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 6c73ed0 was e302a015, checked in by Douglas R. Reno <renodr@…>, 10 months ago

Update to mercurial-6.5.2

  • Property mode set to 100644
File size: 10.9 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 " ">
[e302a015]9 <!ENTITY mercurial-md5sum "361503003cf5e73bc80d2e1b796499e1">
[ea781cd]10 <!ENTITY mercurial-size "7.9 MB">
11 <!ENTITY mercurial-buildsize "115 MB (with docs, add 1.5 GB for tests)">
[e302a015]12 <!ENTITY mercurial-time "0.3 SBU (with docs; add 26 SBU for tests; both using parallelism=4)">
[f5a75ae]13]>
14
[263da2b]15<sect1 id="mercurial" xreflabel="Mercurial-&mercurial-version;">
[f5a75ae]16 <?dbhtml filename="mercurial.html"?>
17
18
[263da2b]19 <title>Mercurial-&mercurial-version;</title>
[f5a75ae]20
21 <indexterm zone="mercurial">
22 <primary sortas="a-mercurial">mercurial</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Mercurial</title>
27
[de33b2a]28 <para>
29 <application>Mercurial</application> is a distributed source control
30 management tool similar to <application>Git</application> and
31 <application>Bazaar</application>. <application>Mercurial</application>
32 is written in <application>Python</application> and is used by projects
[0f124fa]33 such as Mozilla for Firefox and Thunderbird.
[de33b2a]34 </para>
[f5a75ae]35
[282a0eb]36 &lfs120_checked;
[f5a75ae]37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
[de33b2a]41 <para>
42 Download (HTTP): <ulink url="&mercurial-download-http;"/>
43 </para>
[f5a75ae]44 </listitem>
45 <listitem>
[de33b2a]46 <para>
47 Download (FTP): <ulink url="&mercurial-download-ftp;"/>
48 </para>
[f5a75ae]49 </listitem>
50 <listitem>
[de33b2a]51 <para>
52 Download MD5 sum: &mercurial-md5sum;
53 </para>
[f5a75ae]54 </listitem>
55 <listitem>
[de33b2a]56 <para>
57 Download size: &mercurial-size;
58 </para>
[f5a75ae]59 </listitem>
60 <listitem>
[de33b2a]61 <para>
62 Estimated disk space required: &mercurial-buildsize;
63 </para>
[f5a75ae]64 </listitem>
65 <listitem>
[de33b2a]66 <para>
67 Estimated build time: &mercurial-time;
68 </para>
[f5a75ae]69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Mercurial Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
[d3ea9e8]76 <xref linkend="docutils"/>
77 (required to build the documentation),
[982e5c9]78 <xref linkend="git"/>,
[169d04a]79 <xref linkend="gpgme"/> (with Python bindings),
[572553b]80 <xref role="runtime" linkend="openssh"/>
81 (runtime, to access ssh://... repositories),
[07f61e4]82 <xref linkend="pygments"/>,
[d0e51e6]83 <xref linkend="rust"/> (see <filename>rust/README.rst</filename> and <filename>rust/rhg/README.md</filename>),
[982e5c9]84 <xref linkend="subversion"/> (with Python bindings),
[b2b0d26]85 <ulink url="https://launchpad.net/bzr">Bazaar</ulink>,
[80106051]86 <ulink url="https://www.nongnu.org/cvs/">CVS</ulink>,
[169d04a]87 <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
88 <ulink url="https://www.pyopenssl.org/en/stable/">pyOpenSSL</ulink>, and
89 <ulink url="https://github.com/google/re2/">re2</ulink>
[982e5c9]90
[f5a75ae]91 </para>
92
93
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of Mercurial</title>
[d445316]98 <!-- Rust port is now part of the standard tests -->
99
[de33b2a]100 <para>
101 Build <application>Mercurial</application> by issuing the following
102 command:
103 </para>
[0d7900a]104
[f5a75ae]105<screen><userinput>make build</userinput></screen>
[0d7900a]106
[de33b2a]107 <para>
108 To build the documentation (requires <xref linkend="docutils"/>), issue:
109 </para>
[f5a75ae]110
[d445316]111<screen remap="doc"><userinput>make doc</userinput></screen>
[f5a75ae]112
[2ecc682]113 <para>
114 If you wish to run the tests, the rust tests must be removed as they are
115 currently broken due to syntax errors. To do this, issue:
116 </para>
117
118<screen><userinput>sed -i '138,142d' Makefile</userinput></screen>
119
[c1ced74d]120 <para>
[f183c1c]121 To run the test suite, issue:
[c1ced74d]122 </para>
[634e2a1]123<screen remap="test"><userinput>TESTFLAGS="-j<replaceable>&lt;N&gt;</replaceable> --tmpdir tmp" make check</userinput></screen>
[0f16c7cd]124<!-- The blacklists have to be checked every release of Mercurial, do a listing
[e440af5]125 of tests/blacklists, but do not include the README.
[634e2a1]126 For 6.4.1 removing the -blacklist entries did not affect the test results
127 although blacklists/fsmonitor and blacklists/linux-vfat still exist. -->
[23209a71]128
[de33b2a]129 <para>
130 where <replaceable>&lt;N&gt;</replaceable> is an integer between one
[f183c1c]131 and the number of ( processor X threads ), inclusive. Several tests
[634e2a1]132 fail because some error messages have changed in Python or
133 some deprecation warnings are printed that were not present when the
[1a7bbb8]134 test was designed.
[f183c1c]135 <!--
[f19b4b89]136 # Ran 908 tests, 65 skipped, 4 failed. real 10m37.422s -bdubbs 6 Sep 22.
137 # Ran 881 tests,102 skipped, 23 failed. -plabs 17 Nov 22.
138 # Ran 919 tests, 64 skipped, 23 failed. real 10m25.285s -bdubbs 10 Jan 23.
139 # Ran 893 tests,101 skipped, 9 failed. real 29m03.014s -bdubbs 5 Mar 23.
140 # Ran 938 tests, 64 skipped, 8 failed. real 32m13.014s -bdubbs 17 Apr 23.
141 # Ran 935 tests, 69 skipped, 8 failed. real 26m15.875s -bdubbs 10 Jun 23.
[a887a08]142 # Ran 940 tests, 64 skipped, 8 failed. real omitted -bdubbs 26 Jun 23.
[ea781cd]143 # Ran 948 tests, 66 skipped, 0 failed. -pierre 12 Jul 23 (mercurial-6.5).
[1fe05eb]144 -->
[1a7bbb8]145 In order to
[de33b2a]146 investigate any apparently failing tests, you may use the
147 <command>run-tests.py</command> script. To see the almost forty switches,
148 some of them very useful, issue <command>tests/run-tests.py
149 --help</command>. Running the following commands, you will execute only
150 the tests that failed before:
151 </para>
[f60ecce]152
[a42c273]153<screen remap="test"><userinput>pushd tests &amp;&amp;
[2beaab8]154 rm -rf tmp &amp;&amp;
[b93e2bde]155 ./run-tests.py --tmpdir tmp test-gpg.t
[768e6fd]156popd</userinput></screen>
[f5a75ae]157
[de33b2a]158 <para>
[6148e28]159 Normally, the previous failures will be reproducible. However, if
[de33b2a]160 you add the switch <option>--debug</option> before
[6148e28]161 <option>--tmpdir</option>, and run the tests again, some failures may
162 disappear, which is a problem with the test suite. If this happens,
163 there will be no more of these failures even if you do not pass the
164 --debug switch again.
[de33b2a]165 </para>
[2beaab8]166
[de33b2a]167 <para>
[7a9a7b26]168 An interesting switch is <option>--time</option>, which will generate a
169 table of all the executed tests and their respective start, end, user,
[6148e28]170 system and real times once the tests are complete. Note that these
[de33b2a]171 switches may be used with <command>make check</command> by including
172 them in the <envar>TESTFLAGS</envar> environment variable.
173 </para>
[f60ecce]174
[de33b2a]175 <para>
176 Install <application>Mercurial</application> by running the following
177 command (as <systemitem class="username">root</systemitem>):
178 </para>
[f5a75ae]179
180<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
181
[de33b2a]182 <para>
183 If you built the documentation, install it by running the following
184 command (as <systemitem class="username">root</systemitem>):
185 </para>
[f5a75ae]186
[a42c273]187<screen role="root"
188 remap="doc"><userinput>make PREFIX=/usr install-doc</userinput></screen>
[f5a75ae]189
[de33b2a]190 <para>
[8558044]191 After installation, two very quick and simple tests should run
[de33b2a]192 correctly. The first one needs some configuration:
193 </para>
[ab0c555]194
195<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
196<literal>[ui]
[2beaab8]197username = <replaceable>&lt;user_name&gt; &lt;user@mail&gt;</replaceable></literal>
[ab0c555]198EOF</userinput></screen>
199
[de33b2a]200 <para>
201 where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
202 is optional and can be omitted). With the user identity defined, run
203 <command>hg debuginstall</command> and several lines will be displayed,
204 the last one reading "no problems detected". Another quick and simple
205 test is just <command>hg</command>, which should output basic commands
206 that can be used with <command>hg</command>.
207 </para>
[ab0c555]208
[f5a75ae]209 </sect2>
210
[d445316]211<!--
[f0190231]212 <sect2 role="commands">
213 <title>Command Explanations</title>
214
215 <para>
[586bd9ff]216 <command>2to3 -w doc/hgmanpage.py</command>: Since <application>
[f0190231]217 Python 3</application> is used with docutils, one file needs to be
218 converted in order to be compatible.
219 </para>
220
[d445316]221 </sect2>
222-->
[8558044]223
[431b5b17]224 <sect2 role="configuration">
225 <title>Configuring Mercurial</title>
226
227 <sect3 id="mercurial-config">
228 <title>Config Files</title>
229
230 <para>
[28320bf4]231 <filename>/etc/mercurial/hgrc</filename> and
232 <filename>~/.hgrc</filename>
[431b5b17]233 </para>
234
235 <indexterm zone="mercurial mercurial-config">
236 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
237 </indexterm>
238
[28320bf4]239 <indexterm zone="mercurial mercurial-config">
240 <primary sortas="e-AA.hgrc">~/.hgrc</primary>
241 </indexterm>
242
[de33b2a]243 <para>
244 The great majority of extensions are disabled by default. Run
245 <command>hg help extensions</command> if you need to enable any, e.g.
[6148e28]246 when investigating test failures. This will output a list of enabled
247 and disabled extensions, as well as more information such as how to
248 enable or disable extensions using configuration files.
[de33b2a]249 </para>
[28320bf4]250
[de33b2a]251 <para>
252 If you have installed <xref linkend="make-ca"/> and want
[d761e0a]253 <application>Mercurial</application> to use the certificates,
254 as the <systemitem class="username">root</systemitem> user, issue:
[de33b2a]255 </para>
[431b5b17]256
257<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
[a20c505f]258cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
[431b5b17]259<literal>[web]
[5c3f3856]260cacerts = /etc/pki/tls/certs/ca-bundle.crt</literal>
[431b5b17]261EOF</userinput></screen>
262
263 </sect3>
264
265 </sect2>
266
[f5a75ae]267 <sect2 role="content">
268 <title>Contents</title>
269
270 <segmentedlist>
271 <segtitle>Installed Programs</segtitle>
272 <segtitle>Installed Libraries</segtitle>
273 <segtitle>Installed Directories</segtitle>
274
275 <seglistitem>
[8ad9b196]276 <seg>
277 hg
278 </seg>
279 <seg>
280 several internal modules under
[d445316]281 /usr/lib/python&python3-majorver;/site-packages/mercurial
[8ad9b196]282 </seg>
283 <seg>
[f183c1c]284 /etc/mercurial,
285 /usr/lib/python&python3-majorver;/site-packages/hgdemandimport,
286 /usr/lib/python&python3-majorver;/site-packages/hgext,
287 /usr/lib/python&python3-majorver;/site-packages/hgext3rd,
288 /usr/lib/python&python3-majorver;/site-packages/mercurial, and
289 /usr/lib/python&python3-majorver;/site-packages/mercurial-&mercurial-version;-py&python3-majorver;.egg-info
[8ad9b196]290 </seg>
[f5a75ae]291 </seglistitem>
292 </segmentedlist>
293
294 <variablelist>
295 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
296 <?dbfo list-presentation="list"?>
297 <?dbhtml list-presentation="table"?>
298
299 <varlistentry id="hg">
300 <term><command>hg</command></term>
301 <listitem>
[de33b2a]302 <para>
[4c24eb0a]303 is the mercurial version control system
[de33b2a]304 </para>
[f5a75ae]305 <indexterm zone="mercurial hg">
306 <primary sortas="b-hg">hg</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 </variablelist>
312
313 </sect2>
314
315</sect1>
Note: See TracBrowser for help on using the repository browser.