changeset 16504:e3c7ca15cde2 stable

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.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 23 Apr 2012 00:38:22 +0900
parents c27a769d9703
children db85c24dcdea 80d940066176
files mercurial/help/hgignore.txt mercurial/help/patterns.txt
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.