source: general/prog/mercurial.xml@ 682f45b2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 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 682f45b2 was 682f45b2, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

More tags and libexec removals.

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

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