2008/11/29 Ryan Schmidt <subversion-2008c_at_ryandesign.com>:
> 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).
Is this the official answer? Do I need to update the TortoiseSVN
manual to say that path components should not be used in global ignore
svn:ignore patterns only make sense applied to immediate child files
and folders. If you tried to use it to ignore grandchildren then it
would fail if the WC was checked out from the child folder instead.
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-12-01 10:50:58 CET