source: general/prog/mercurial.xml@ 23209a71

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 23209a71 was 23209a71, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to mercurial-3.0.2.

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

  • Property mode set to 100644
File size: 7.1 KB
Line 
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 " ">
9 <!ENTITY mercurial-md5sum "c5be4265745a8140fec777a4dfc40e0e">
10 <!ENTITY mercurial-size "3.8 MB">
11 <!ENTITY mercurial-buildsize "43 MB (additional 249 MB for the tests and 2 MB for docs generation)
12
13">
14 <!ENTITY mercurial-time "less than 0.1 SBU (additional 7.9 SBU for tests)">
15]>
16
17<sect1 id="mercurial" xreflabel="Mercurial-&mercurial-version;">
18 <?dbhtml filename="mercurial.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>Mercurial-&mercurial-version;</title>
26
27 <indexterm zone="mercurial">
28 <primary sortas="a-mercurial">mercurial</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Mercurial</title>
33
34 <para><application>Mercurial</application> is a distributed source control
35 management tool similar to <application>Git</application> and
36 <application>Bazaar</application>. <application>Mercurial</application> is
37 written in <application>Python</application> and is used by projects such as
38 Mozilla and Vim.</para>
39
40 &lfs75_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&mercurial-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&mercurial-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &mercurial-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &mercurial-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &mercurial-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &mercurial-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Mercurial Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Required</bridgehead>
67 <para role="required">
68 <xref linkend="python2"/>
69 </para>
70
71 <bridgehead renderas="sect4">Optional</bridgehead>
72 <para role="optional">
73 <xref linkend="bazaar"/>,
74 <xref linkend="cvs"/>,
75 <xref linkend="git"/>,
76 <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
77 <xref linkend="subversion"/> (with Python bindings),
78 <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
79 <ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
80 <ulink url="http://pygments.org/">pygments</ulink>, and
81 <ulink url="https://launchpad.net/pyopenssl">pyOpenSSL</ulink>
82
83 </para>
84
85 <para condition="html" role="usernotes">User Notes:
86 <ulink url="&blfs-wiki;/mercurial"/></para>
87
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of Mercurial</title>
92
93 <para>Build <application>Mercurial</application> by issuing the following
94 command:</para>
95
96<screen><userinput>make build</userinput></screen>
97
98 <para>To build the documentation (requires
99 <application>Docutils</application>), issue:</para>
100
101<screen><userinput>make doc</userinput></screen>
102
103 <para>In the test suite, failure of test-patchbomb is expected with
104 <application>Python-2.7.x</application> (x &gt; 7). To test the results in
105 the subdiretory <filename class="directory">tmp</filename>, blacklisting
106 this test, issue:</para>
107
108<screen><userinput>cat &gt; tests/blacklists/test-failed &lt;&lt; "EOF"
109<literal># Failure with Python-2.7.8
110 test-patchbomb.t</literal>
111EOF
112rm -rf tests/tmp &amp;&amp;
113TESTFLAGS="--tmpdir tmp --blacklist blacklists/test-failed" \
114make check</userinput></screen>
115
116 <para>Tests may be run in parallel, just add
117 <quote>-j$(getconf _NPROCESSORS_ONLN)</quote> to TESTFLAGS.</para>
118
119 <para>Install <application>Mercurial</application> by running
120 the following command (as <systemitem class="username">root</systemitem>):</para>
121
122<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
123
124 <para>If you built the documentation, install it by running
125 the following command (as <systemitem class="username">root</systemitem>):</para>
126
127<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
128
129 <para>After installed, two very quick and simple tests should run correctly.
130 First one needs some configuration:</para>
131
132<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
133<literal>[ui]
134username = &lt;user_name&gt; &lt;your@mail&gt;</literal>
135EOF</userinput></screen>
136
137 <para>where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
138 is optional and can be omitted). With the user identity defined, run
139 <command>hg debuginstall</command> and several lines will be displayed,
140 the last one reading "no problems detected". Another quick and simple test
141 is just <command>hg</command>, which should output basic commands that can
142 be used with <command>hg</command>.</para>
143
144 </sect2>
145
146 <sect2 role="configuration">
147 <title>Configuring Mercurial</title>
148
149 <sect3 id="mercurial-config">
150 <title>Config Files</title>
151
152 <para>
153 <filename>/etc/mercurial/hgrc</filename>
154 </para>
155
156 <indexterm zone="mercurial mercurial-config">
157 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
158 </indexterm>
159
160 <para>
161 If you have installed the <xref linkend="cacerts"/> and you want
162 <application>Mercurial</application> to use them, as the
163 <systemitem class="username">root</systemitem> user:
164 </para>
165
166<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
167cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
168<literal>[web]
169cacerts = /etc/ssl/ca-bundle.crt</literal>
170EOF</userinput></screen>
171
172 </sect3>
173
174 </sect2>
175
176 <sect2 role="content">
177 <title>Contents</title>
178
179 <segmentedlist>
180 <segtitle>Installed Programs</segtitle>
181 <segtitle>Installed Libraries</segtitle>
182 <segtitle>Installed Directories</segtitle>
183
184 <seglistitem>
185 <seg>hg</seg>
186 <seg>several under /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
187 <seg>/etc/mercurial, /usr/lib/python&python2-majorver;/site-packages/hgext and
188 /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
189 </seglistitem>
190 </segmentedlist>
191
192 <variablelist>
193 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
194 <?dbfo list-presentation="list"?>
195 <?dbhtml list-presentation="table"?>
196
197 <varlistentry id="hg">
198 <term><command>hg</command></term>
199 <listitem>
200 <para>is the program file for mercurial.</para>
201 <indexterm zone="mercurial hg">
202 <primary sortas="b-hg">hg</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 </variablelist>
208
209 </sect2>
210
211</sect1>
Note: See TracBrowser for help on using the repository browser.