Mercurial > public > mercurial-scm > hg
diff mercurial/help/config.txt @ 23629:a04c7b74b3d5
ignore: resolve ignore files relative to repo root (issue4473) (BC)
Previously these would be considered to be relative to the current working
directory. That behavior is both undocumented and doesn't really make sense.
There are two reasonable options for how to resolve relative paths:
- relative to the repo root
- relative to the config file
Resolving these files relative to the repo root matches existing behavior with
hooks. An earlier discussion about this is available at
http://mercurial.markmail.org/thread/tvu7yhzsiywgkjzl.
Thanks to Isaac Jurado <diptongo@gmail.com> for the initial patchset that
spurred the discussion.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 16 Dec 2014 14:34:53 -0800 |
parents | d7abae94a7a0 |
children | e9ede9b4c2f8 d09262d6ec23 |
line wrap: on
line diff
--- a/mercurial/help/config.txt Wed Dec 17 18:53:38 2014 -0800 +++ b/mercurial/help/config.txt Tue Dec 16 14:34:53 2014 -0800 @@ -1338,11 +1338,11 @@ ``ignore`` A file to read per-user ignore patterns from. This file should be - in the same format as a repository-wide .hgignore file. This - option supports hook syntax, so if you want to specify multiple - ignore files, you can do so by setting something like - ``ignore.other = ~/.hgignore2``. For details of the ignore file - format, see the ``hgignore(5)`` man page. + in the same format as a repository-wide .hgignore file. Filenames + are relative to the repository root. This option supports hook syntax, + so if you want to specify multiple ignore files, you can do so by + setting something like ``ignore.other = ~/.hgignore2``. For details + of the ignore file format, see the ``hgignore(5)`` man page. ``interactive`` Allow to prompt the user. True or False. Default is True.