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

Behaviour of global ignores

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Sat, 29 Nov 2008 00:54:37 +0000

Hi folks,

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.

Simon

-- 
:       ___
:  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-11-29 01:55:01 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.