[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ignore every file except XX*

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 17 Jun 2020 18:22:40 +0000

> > > > At this point I'd rather wait for Daniel to answer my question and
> > > > clarify his problem statement.
> > >
> > > I rather suspect that XX* and YY* were just general examples, not
> > > concrete ones.
> >
> > So do I, but the solution I posted is generalizable, as you know.
> >
>
> These were indeed just general examples. In practice there will be more
> than two patterns as well.
>
> I must admit I haven't experimented much with the glob pattern (admittedly,
> I suck at this!) but I have a feeling the complexity will increase rapidly
> when the number combinations (and variations) increase.

Yes, it will… but there might be room for, say, a tool that takes as
input a list of patterns and outputs the svn:ignore property value to
use. That won't be hard to write, and the main selling point would be
that it would work under existing releases as well.

> I think a separate property that is evaluated at the same time as
> svn:ignore is a lot easier to explain ("A file is ignored if the name
> satisfies one pattern in the svn:ignore list and satisfies NO pattern in
> the 'reverse of svn:ignore' property") than a convoluted regex.

No argument here. I never objected to an additional property, you
know; I just wanted to finish turning that last stone. See you on dev@ ☺

> The downside with a new property is that GUI implementors *may* want
> to implement additional support in the GUI for optimum user
> experience.

I don't see how that's a downside.
Received on 2020-06-17 20:22:51 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.