D5493: match: support rooted globs in hgignore
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Wed Jan 9 08:50:48 EST 2019
yuja added subscribers: foozy, yuja.
yuja added a comment.
> The code already supports this but there is no syntax to make use of
> it, so it seems reasonable to create such syntax. I create a new
> hgignore syntax "rootedglob". There might be a better name, but
> "rooted" is the terminology in use in user-facing documentation.
Perhaps, it can be called a "rootglob".
https://www.mercurial-scm.org/pipermail/mercurial-devel/2016-October/089604.html
I don't remember how the discussion ended, but since we have new "rootfilesin"
matcher, "root<whatever>" should be the new naming convention.
> + syntaxes = collections.OrderedDict([
> + ('re', 'relre:'),
> + ('regexp', 'relre:'),
> + ('glob', 'relglob:'),
> + ('rootedglob', 'glob:'), # after 'glob' line, so glob:a means relglob:a
Can you add a new matcher kind 'rootglob'? I understand 'glob' can be abused
for .hgignore, but it's the pattern relative to cwd.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5493
To: valentin.gatienbaron, #hg-reviewers
Cc: yuja, foozy, mercurial-devel
More information about the Mercurial-devel
mailing list