source: general/prog/mercurial.xml@ 0a2b7e09

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 0a2b7e09 was 0a2b7e09, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Mercurial-2.9.2, Bazaar-2.5.1 and Wicd-1.7.2.4: small fix, replacing 2.7 by &python2-majorver;.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12957 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 "1caeed1bea1232598fc5ce5d6d109f56">
10 <!ENTITY mercurial-size "3.7 MB">
11 <!ENTITY mercurial-buildsize "43 MB (additional 1MB for the tests and 1 MB for docs generation)
12
13">
14 <!ENTITY mercurial-time "less than 0.1 SBU (additional 7.6 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 <ulink url="http://docutils.sourceforge.net/">Docutils</ulink> (required to build the documentation),
74 <xref linkend="git"/>,
75 <xref linkend="gnupg2"/> (<command>gpg2</command> with Python bindings),
76 <xref linkend="subversion"/> (with Python bindings),
77 <xref linkend="bazaar"/>,
78 <xref linkend="cvs"/>,
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>To test the results, issue: <command>make check</command>. During the
104 tests, the build directory size increases above the
105 <quote>Estimated disk space required</quote>, even when considering the
106 additional values, due to temporary test files.</para>
107
108 <para>Install <application>Mercurial</application> by running
109 the following command (as <systemitem class="username">root</systemitem>):</para>
110
111<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
112
113 <para>If you built the documentation, install it by running
114 the following command (as <systemitem class="username">root</systemitem>):</para>
115
116<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
117
118 <para>After installed, two very quick and simple tests should run correctly.
119 First one needs some configuration:</para>
120
121<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
122<literal>[ui]
123username = &lt;user_name&gt; &lt;your@mail&gt;</literal>
124EOF</userinput></screen>
125
126 <para>where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
127 is optional and can be omitted). With the user identity defined, run
128 <command>hg debuginstall</command> and several lines will be displayed,
129 the last one reading "no problems detected". Another quick and simple test
130 is just <command>hg</command>, which should output basic commands that can
131 be used with <command>hg</command>.</para>
132
133 </sect2>
134
135 <sect2 role="configuration">
136 <title>Configuring Mercurial</title>
137
138 <sect3 id="mercurial-config">
139 <title>Config Files</title>
140
141 <para>
142 <filename>/etc/mercurial/hgrc</filename>
143 </para>
144
145 <indexterm zone="mercurial mercurial-config">
146 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
147 </indexterm>
148
149 <para>
150 If you have installed the <xref linkend="cacerts"/> and you want
151 <application>Mercurial</application> to use them, as the
152 <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
156cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
157<literal>[web]
158cacerts = /etc/ssl/ca-bundle.crt</literal>
159EOF</userinput></screen>
160
161 </sect3>
162
163 </sect2>
164
165 <sect2 role="content">
166 <title>Contents</title>
167
168 <segmentedlist>
169 <segtitle>Installed Programs</segtitle>
170 <segtitle>Installed Libraries</segtitle>
171 <segtitle>Installed Directories</segtitle>
172
173 <seglistitem>
174 <seg>hg</seg>
175 <seg>/usr/lib/python&python2-majorver;/site-packages/hgext/inotify/linux/_inotify.so and
176 several under /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
177 <seg>/etc/mercurial, /usr/lib/python&python2-majorver;/site-packages/hgext and
178 /usr/lib/python&python2-majorver;/site-packages/mercurial</seg>
179 </seglistitem>
180 </segmentedlist>
181
182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
187 <varlistentry id="hg">
188 <term><command>hg</command></term>
189 <listitem>
190 <para>is the program file for mercurial.</para>
191 <indexterm zone="mercurial hg">
192 <primary sortas="b-hg">hg</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 </variablelist>
198
199 </sect2>
200
201</sect1>
Note: See TracBrowser for help on using the repository browser.