doc: add note about pattern rooted/unrooted cases to "hgignore" and "patterns" stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 23 Apr 2012 00:38:22 +0900
branchstable
changeset 16504 e3c7ca15cde2
parent 16503 c27a769d9703
child 16505 db85c24dcdea
child 16518 80d940066176
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.
mercurial/help/hgignore.txt
mercurial/help/patterns.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
 -------
 
--- 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.