RFC: Transparent subrepository support by match module

Didly Bom didlybom at gmail.com
Wed Aug 18 06:18:50 CDT 2010


On Wed, Aug 18, 2010 at 12:50 PM, Martin Geisler <mg at lazybytes.net> wrote:

> Didly Bom <didlybom at gmail.com> writes:
>
> > On Wed, Aug 18, 2010 at 9:59 AM, Martin Geisler <mg at lazybytes.net>
> wrote:
> >
> >> So perhaps one could extend the '**' and '*' glob operators by adding
> >> a lazy forms: '**?' and '*?' which then wont expand across
> >> subrepository boundaries. This is inspired by regexps where the '*?'
> >> is a non-greedy version of the '*' character.
> >
> > I like this idea. It seems powerful yet easy to understand.
>
> I just had a better idea:
>
> - "*" matches all characters except "/"
> - "**" matches all characters including "/", but stops at subrepos
> - "***" matches everything
>
> That is fairly backwards compatible and does not reuse the "?" character
> which already has its own meaning in shell globs.
>

If feasible, this seems and even cleaner and simpler solution!

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100818/5d7ab46a/attachment.htm>


More information about the Mercurial-devel mailing list