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

Re: Issue 2728: Negated glob patterns for svn:ignore and global ignores

From: Osku Salerma <osku_at_iki.fi>
Date: 2007-03-26 02:53:33 CEST

On Sun, 25 Mar 2007, Erik Huelsmann wrote:

> Issue 2728 adds a patch to negate global ignore patterns. I think this
> is usefull, but it uses the (quite normal) '!' negation character.
>
> In our API we currently don't define any special characters other than
> the normal globbing characters. So, committing this patch would break
> our API. Now, I know we weren't supposed to do that. However, since
> there's *no* provision whatsoever for escaping characters either,
> there would be no other way than to post-pone to 2.0. That would be -
> IMO - overkill for a change this small.
>
> So, comments?

There is actually a way to do this before 2.0, if you really want
to. The trick is to start the pattern with the / character, which
currently can not match anything. I used that in my patch to add
support for regexps in svn:ignore:

  http://svn.haxx.se/dev/archive-2006-06/0587.shtml

In the end it was not applied since people were not too happy about
adding a dependency on the PCRE library just for this.

But I expect eventually svn needs regexp support for more important
things and at that time the svn:ignore regexp support can be added in,
so if you or someone else adds this negate-support, please do it in
such a way that the syntax is compatible with adding regexp support in
the future.

--
Osku Salerma
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 26 02:53:47 2007

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

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