[PATCH] help: explain effect of .hgignore on tracked files

Adrian Buehlmann adrian at cadifra.com
Sun Jul 1 17:53:26 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1341181882 -7200
# Node ID 817b62af156ef13d3780089219b82dcbd2e8c346
# Parent  5f2cacb715dcf6dd2676088d5218f014e1a5d2a9
help: explain effect of .hgignore on tracked files

diff --git a/mercurial/help/hgignore.txt b/mercurial/help/hgignore.txt
--- a/mercurial/help/hgignore.txt
+++ b/mercurial/help/hgignore.txt
@@ -33,6 +33,11 @@
 commands support the ``-I`` and ``-X`` options; see
 :hg:`help <command>` and :hg:`help patterns` for details.
 
+Files that are already tracked are not affected by .hgignore, even
+if they appear in .hgignore. An untracked file X can be explicitly
+added with :hg:`add X`, even if X would be excluded by a pattern
+in .hgignore.
+
 Syntax
 ------
 


More information about the Mercurial-devel mailing list