[PATCH 1 of 2] Describe all files related to the standard commands

Olav Reinert seroton10 at gmail.com
Tue Dec 6 09:38:32 CST 2011


# HG changeset patch
# User Olav Reinert <seroton10 at gmail.com>
# Date 1323183028 -3600
# Branch stable
# Node ID ebf25ffdff96f8419dac57ffe64f55c1dcb3c24c
# Parent  09b200396384b5e3b184c551c5ce348faa995771
Describe all files related to the standard commands.

diff -r 09b200396384 -r ebf25ffdff96 doc/hg.1.txt
--- a/doc/hg.1.txt	Mon Dec 05 17:09:11 2011 -0600
+++ b/doc/hg.1.txt	Tue Dec 06 15:50:28 2011 +0100
@@ -50,16 +50,6 @@
 Files
 -----
 
-``.hgignore``
-    This file contains regular expressions (one per line) that
-    describe file names that should be ignored by **hg**. For details,
-    see |hgignore(5)|_.
-
-``.hgtags``
-    This file contains changeset hash values and text tag names (one
-    of each separated by spaces) that correspond to tagged versions of
-    the repository contents.
-
 ``/etc/mercurial/hgrc``, ``$HOME/.hgrc``, ``.hg/hgrc``
     This file contains defaults and configuration. Values in
     ``.hg/hgrc`` override those in ``$HOME/.hgrc``, and these override
@@ -67,6 +57,34 @@
     See |hgrc(5)|_ for details of the contents and format of these
     files.
 
+``.hgignore``
+    This file contains regular expressions (one per line) that
+    describe file names that should be ignored by **hg**. For details,
+    see |hgignore(5)|_.
+
+``.hgsub``
+    This file defines the locations of all subrepositories, and
+    tells where the subrepository checkouts came from. For details, see
+    :hg:`help subrepos`.
+
+``.hgsubstate``
+    This file is where Mercurial stores all nested repository states. *NB: This
+    file should not be edited manually.*
+
+``.hgtags``
+    This file contains changeset hash values and text tag names (one
+    of each separated by spaces) that correspond to tagged versions of
+    the repository contents. The file content is encoded using UTF-8.
+
+``.hg/last-message.txt``
+    This file is used by :hg:`commit` to store a backup of the commit message
+    in case the commit fails.
+
+``.hg/localtags``
+    This file can be used to define local tags which are not shared among
+    repositories. The file format is the same as for ``.hgtags``, but it is
+    encoded using the local system encoding.
+    
 Some commands (e.g. revert) produce backup files ending in ``.orig``,
 if the ``.orig`` file already exists and is not tracked by Mercurial,
 it will be overwritten.


More information about the Mercurial-devel mailing list