source: general/prog/mercurial.xml@ 37dfd42

kde5-14686 systemd-13485
Last change on this file since 37dfd42 was 37dfd42, checked in by Christopher Gregory <cjg@…>, 10 years ago

Merge more updates from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14511 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.6 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 "72a79798de828d6d6fb055273f91201a">
10 <!ENTITY mercurial-size "3.9 MB">
11 <!ENTITY mercurial-buildsize "44 MB (additional 250 MB for the tests and 2 MB for docs generation)">
12 <!ENTITY mercurial-time "0.1 SBU (additional 9 SBU for tests)">
13]>
14
15<sect1 id="mercurial" xreflabel="Mercurial-&mercurial-version;">
16 <?dbhtml filename="mercurial.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Mercurial-&mercurial-version;</title>
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
32 <para><application>Mercurial</application> is a distributed source control
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>
37
38 &lfs76_checked;
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>
68
69 <bridgehead renderas="sect4">Optional</bridgehead>
70 <para role="optional">
71 <xref linkend="bazaar"/>,
72 <xref linkend="cvs"/>,
73 <xref linkend="git"/>,
74 <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
75 <xref linkend="subversion"/> (with Python bindings),
76 <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
77 <ulink url="http://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
78 <ulink url="http://pygments.org/">pygments</ulink>, and
79 <ulink url="https://launchpad.net/pyopenssl">pyOpenSSL</ulink>
80
81 </para>
82
83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/mercurial"/></para>
85
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of Mercurial</title>
90
91 <para>Build <application>Mercurial</application> by issuing the following
92 command:</para>
93
94<screen><userinput>make build</userinput></screen>
95
96 <para>To build the documentation (requires
97 <application>Docutils</application>), issue:</para>
98
99<screen><userinput>make doc</userinput></screen>
100
101 <para>Running the test suite is optional. Failure of test-patchbomb is
102 expected with <application>Python-2.7.x</application> (x &gt; 7). To test
103 the results in the subdiretory
104 <filename class="directory">tests/tmp</filename>,
105 skipping the failing test, issue:</para>
106
107<screen><userinput>cat &gt; tests/blacklists/test-failed &lt;&lt; "EOF"
108<literal># Failure with Python-2.7.8
109 test-patchbomb.t</literal>
110EOF
111rm -rf tests/tmp &amp;&amp;
112TESTFLAGS="--tmpdir tmp --blacklist blacklists/test-failed" \
113make check</userinput></screen>
114
115 <para>More failing tests might be added to that file, if necessary. Tests
116 may be run in parallel, just add <quote>-j$(getconf
117 _NPROCESSORS_ONLN)</quote> to TESTFLAGS. In order to investigate a
118 particular apparently failing test, e.g <quote>test-parse-date.t</quote>,
119 issue the following commands (notice that omitting <option>--debug</option>
120 sometimes modifies the result):</para>
121
122<screen><userinput>pushd tests &amp;&amp;
123rm -rf tmp &amp;&amp;
124./run-tests.py --debug --tmpdir tmp test-parse-date.t &amp;&amp;
125popd</userinput></screen>
126
127 <para>Install <application>Mercurial</application> by running
128 the following command (as <systemitem class="username">root</systemitem>):</para>
129
130<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
131
132 <para>If you built the documentation, install it by running
133 the following command (as <systemitem class="username">root</systemitem>):</para>
134
135<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
136
137 <para>After installed, two very quick and simple tests should run correctly.
138 First one needs some configuration:</para>
139
140<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
141<literal>[ui]
142username = &lt;user_name&gt; &lt;your@mail&gt;</literal>
143EOF</userinput></screen>
144
145 <para>where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
146 is optional and can be omitted). With the user identity defined, run
147 <command>hg debuginstall</command> and several lines will be displayed,
148 the last one reading "no problems detected". Another quick and simple test
149 is just <command>hg</command>, which should output basic commands that can
150 be used with <command>hg</command>.</para>
151
152 </sect2>
153
154 <sect2 role="configuration">
155 <title>Configuring Mercurial</title>
156
157 <sect3 id="mercurial-config">
158 <title>Config Files</title>
159
160 <para>
161 <filename>/etc/mercurial/hgrc</filename>
162 </para>
163
164 <indexterm zone="mercurial mercurial-config">
165 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
166 </indexterm>
167
168 <para>
169 If you have installed the <xref linkend="cacerts"/> and you want
170 <application>Mercurial</application> to use them, as the
171 <systemitem class="username">root</systemitem> user:
172 </para>
173
174<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
175cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
176<literal>[web]
177cacerts = /etc/ssl/ca-bundle.crt</literal>
178EOF</userinput></screen>
179
180 </sect3>
181
182 </sect2>
183
184 <sect2 role="content">
185 <title>Contents</title>
186
187 <segmentedlist>
188 <segtitle>Installed Programs</segtitle>
189 <segtitle>Installed Libraries</segtitle>
190 <segtitle>Installed Directories</segtitle>
191
192 <seglistitem>
193 <seg>hg</seg>
194 <seg>several under /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
195 <seg>/etc/mercurial, /usr/lib/python&python2-majorver;/site-packages/hgext and
196 /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
197 </seglistitem>
198 </segmentedlist>
199
200 <variablelist>
201 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
202 <?dbfo list-presentation="list"?>
203 <?dbhtml list-presentation="table"?>
204
205 <varlistentry id="hg">
206 <term><command>hg</command></term>
207 <listitem>
208 <para>is the program file for mercurial.</para>
209 <indexterm zone="mercurial hg">
210 <primary sortas="b-hg">hg</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 </variablelist>
216
217 </sect2>
218
219</sect1>
Note: See TracBrowser for help on using the repository browser.