[PATCH 7 of 7 STABLE] doc: add note about pattern rooted/unrooted cases to "hgignore" and "patterns"

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sun Apr 22 10:40:32 CDT 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1335109102 -32400
# Branch stable
# Node ID a847bd3efaabcd260d4ad9bb10162a3afb2fce98
# Parent  f260f6c79bf58d95961c515509921529991ba589
doc: add note about pattern rooted/unrooted cases to "hgignore" and "patterns"

each help topics describe that patterns are "not rooted" and "rooted"
in themselves, but not describe about each other.

so, this may causes misunderstanding about "rooted"-ness of patterns.

diff -r f260f6c79bf5 -r a847bd3efaab mercurial/help/hgignore.txt
--- a/mercurial/help/hgignore.txt	Mon Apr 23 00:33:09 2012 +0900
+++ b/mercurial/help/hgignore.txt	Mon Apr 23 00:38:22 2012 +0900
@@ -63,6 +63,10 @@
 and a regexp pattern of the form ``\.c$`` will do the same. To root a
 regexp pattern, start it with ``^``.
 
+.. note::
+  Patterns specified in other than ``.hgignore`` are always rooted.
+  Please see :hg:`help patterns` for details.
+
 Example
 -------
 
diff -r f260f6c79bf5 -r a847bd3efaab mercurial/help/patterns.txt
--- a/mercurial/help/patterns.txt	Mon Apr 23 00:33:09 2012 +0900
+++ b/mercurial/help/patterns.txt	Mon Apr 23 00:38:22 2012 +0900
@@ -6,6 +6,10 @@
 
 Alternate pattern notations must be specified explicitly.
 
+.. note::
+  Patterns specified in ``.hgignore`` are not rooted. Please see
+  :hg:`help hgignore` for details.
+
 To use a plain path name without any pattern matching, start it with
 ``path:``. These path names must completely match starting at the
 current repository root.


More information about the Mercurial-devel mailing list