[PATCH] match: adding support for repository-root-based globs
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Oct 28 04:40:47 EDT 2016
On 10/25/2016 09:41 AM, Rodrigo Damazio Bovendorp via Mercurial-devel wrote:
> # HG changeset patch
> # User Rodrigo Damazio Bovendorp <rdamazio at google.com>
> # Date 1475944120 25200
> # Sat Oct 08 09:28:40 2016 -0700
> # Node ID e8454de81600e092f05aa22ecbac32925b70d074
> # Parent 260af19891f2bed679a662be07d1379bb8207592
> match: adding support for repository-root-based globs
>
> The broader plan is to add explicit base directories for all patterns:
> ============ ======== ======= ===========
> pattern type root-ed cwd-ed any-of-path
> ============ ======== ======= ===========
> wildcard rootglob cwdglob anyglob
> regexp rootre cwdre anyre
> raw string rootpath cwdpath anypath
> ============ ======== ======= ===========
> (table by foozy)
The subject seems complicated enough that creating a Plan page seems
relevant. This would help other people to follow what the problem space.
https://www.mercurial-scm.org/wiki/WriteANewFeaturePlan
> I'm starting by adding rootglob.
> One important characteristic and difference from the older glob types is
> that * will never match recursively, even when the glob is used as an include
> pattern.
This seems a bit strange to me. Given that the current glob matcher is
already not recursive, why don't we work on an alternative non recursive
-I flag instead?
Cheers,
--
Pierre-Yves David
More information about the Mercurial-devel
mailing list