source: general/prog/mercurial.xml@ a407a1c

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 a407a1c was a407a1c, checked in by Igor Živković <igor@…>, 10 years ago

misspellings

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

  • Property mode set to 100644
File size: 6.7 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 "050d05f9efc95dfef88217b63962a09a">
10 <!ENTITY mercurial-size "3.7 MB">
11 <!ENTITY mercurial-buildsize "43 MB (additional 2 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 &lfs74_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>. One test
105 (test-archive-symlinks.t) is known to fail.</para>
106
107 <para>Install <application>Mercurial</application> by running
108 the following command (as <systemitem class="username">root</systemitem>):</para>
109
110<screen role="root"><userinput>make PREFIX=/usr install-bin</userinput></screen>
111
112 <para>If you built the documentation, install it by running
113 the following command (as <systemitem class="username">root</systemitem>):</para>
114
115<screen role="root"><userinput>make PREFIX=/usr install-doc</userinput></screen>
116
117 <para>After installed, two very quick and simple tests should run correctly.
118 First one needs some configuration:</para>
119
120<screen><userinput>cat &gt;&gt; ~/.hgrc &lt;&lt; "EOF"
121<literal>[ui]
122username = &lt;user_name&gt; &lt;your@mail&gt;</literal>
123EOF</userinput></screen>
124
125 <para>where you must replace &lt;user_name&gt; and &lt;your@mail&gt; (mail
126 is optional and can be omitted). With the user identity defined, run
127 <command>hg debuginstall</command> and several lines will be displayed,
128 the last one reading "no problems detected". Another quick and simple test
129 is just <command>hg</command>, which should output basic commands that can
130 be used with <command>hg</command>.</para>
131
132 </sect2>
133
134 <sect2 role="configuration">
135 <title>Configuring Mercurial</title>
136
137 <sect3 id="mercurial-config">
138 <title>Config Files</title>
139
140 <para>
141 <filename>/etc/mercurial/hgrc</filename>
142 </para>
143
144 <indexterm zone="mercurial mercurial-config">
145 <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
146 </indexterm>
147
148 <para>
149 If you have installed the <xref linkend="cacerts"/> and you want
150 <application>Mercurial</application> to use them, as the
151 <systemitem class="username">root</systemitem> user:
152 </para>
153
154<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &amp;&amp;
155cat &gt; /etc/mercurial/hgrc &lt;&lt; "EOF"
156<literal>[web]
157cacerts = /etc/ssl/ca-bundle.crt</literal>
158EOF</userinput></screen>
159
160 </sect3>
161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Libraries</segtitle>
170 <segtitle>Installed Directories</segtitle>
171
172 <seglistitem>
173 <seg>hg</seg>
174 <seg>/usr/lib/python2.7/site-packages/hgext/inotify/linux/_inotify.so and
175 several under /usr/lib/python2.7/site-packages/mercurial</seg>
176 <seg>/etc/mercurial, /usr/lib/python2.7/site-packages/hgext and
177 /usr/lib/python2.7/site-packages/mercurial</seg>
178 </seglistitem>
179 </segmentedlist>
180
181 <variablelist>
182 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
183 <?dbfo list-presentation="list"?>
184 <?dbhtml list-presentation="table"?>
185
186 <varlistentry id="hg">
187 <term><command>hg</command></term>
188 <listitem>
189 <para>is the program file for mercurial.</para>
190 <indexterm zone="mercurial hg">
191 <primary sortas="b-hg">hg</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 </variablelist>
197
198 </sect2>
199
200</sect1>
Note: See TracBrowser for help on using the repository browser.