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

Re: Behaviour of global ignores

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sat, 29 Nov 2008 14:01:01 -0600

On Nov 28, 2008, at 18:54, Simon Large wrote:

> Just had some strange behaviour reported on the TSVN list, actually 2
> separate issues. This is with 1.5.
>
> 1. On Windows, global ignore patterns seem to use a backslash as a
> path separator, but everywhere else we have to use a forward slash.
> Paths not ignored are always reported with forward slashes in status.
> Why the inconsistency for ignore patterns? I don't remember this being
> the case previously - is it a recent change? There is no mention of
> this in the svn book.
>
> 2. Said user wants the entire content of a versioned directory to be
> ignored (the directory itself is versioned, the content within should
> be ignored). But he has lots of these directories so wants to avoid
> setting svn:ignore=* on each one. The seemingly obvious solution is to
> use a global ignore pattern like this: "*\dir\*". But no, that doesn't
> work. Nor does "*dir*". In fact the only pattern that does work seems
> to be "*", which is somewhat drastic. It appears that global ignores
> don't work if they include a path which is already versioned. Am I
> missing something, is this by design or is it a bug?
>
> I guess the answer is that global ignores are not really intended to
> include path information. The fact is that they work partially with
> paths, but not consistently. Again, there is no mention of anything
> other than simple filename use in the book.

It may be an accident that including path components in the global-
ignores works at all. I've only ever heard of global-ignores (and
svn:ignore) used to match filenames (not including any path components).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-29 21:01:31 CET

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.