[blfs-book] r11303 - trunk/BOOK/general/prog

igor at higgs.linuxfromscratch.org igor at higgs.linuxfromscratch.org
Mon Jun 17 03:21:02 PDT 2013


Author: igor
Date: Mon Jun 17 03:21:02 2013
New Revision: 11303

Log:
Mercurial: optionally configure CA certs

Modified:
   trunk/BOOK/general/prog/mercurial.xml

Modified: trunk/BOOK/general/prog/mercurial.xml
==============================================================================
--- trunk/BOOK/general/prog/mercurial.xml	Mon Jun 17 03:13:45 2013	(r11302)
+++ trunk/BOOK/general/prog/mercurial.xml	Mon Jun 17 03:21:02 2013	(r11303)
@@ -122,6 +122,36 @@
 
   </sect2>
 
+  <sect2 role="configuration">
+    <title>Configuring Mercurial</title>
+
+    <sect3 id="mercurial-config">
+      <title>Config Files</title>
+
+      <para>
+        <filename>/etc/mercurial/hgrc</filename>
+      </para>
+
+      <indexterm zone="mercurial mercurial-config">
+        <primary sortas="e-etc-mercurial-hgrc">/etc/mercurial/hgrc</primary>
+      </indexterm>
+
+      <para>
+        If you have installed the <xref linkend="cacerts"/> and you want
+        <application>Mercurial</application> to use them, as the
+        <systemitem class="username">root</systemitem> user:
+      </para>
+
+<screen role="root"><userinput>install -v -d -m755 /etc/mercurial &&
+cat > /etc/mercurial/hgrc << "EOF"
+<literal>[web]
+cacerts = /etc/ssl/ca-bundle.crt</literal>
+EOF</userinput></screen>
+
+    </sect3>
+
+  </sect2>
+
   <sect2 role="content">
     <title>Contents</title>
 
@@ -133,7 +163,7 @@
       <seglistitem>
         <seg>hg</seg>
         <seg>none</seg>
-        <seg>/usr/lib/python2.7/site-packages/hgext and
+        <seg>/etc/mercurial, /usr/lib/python2.7/site-packages/hgext and
         /usr/lib/python2.7/site-packages/mercurial</seg>
       </seglistitem>
     </segmentedlist>



More information about the blfs-book mailing list