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

[TSVN] Re: Request: Recursive Add ignore directory trees

From: Simon Large <slarge_at_blazepoint.co.uk>
Date: 2004-09-10 19:18:53 CEST

Request: Recursive Add ignore directory trees"Erv Walter" wrote
> Say I have "bin" (without the quotes) in my ignore
> pattern list. This is what I see in my add dialog box
> when I do "Add" on the .\Project\ directory:
> Project
> Project\bin\Project.dll
> Project\bin\Project.pdb
> Project\AssemblyInfo.cs
> Project\Project.cs
> Project\Project.csproj
> What I would prefer to see is this (with the entire
> bin tree ignored):
> Project
> Project\AssemblyInfo.cs
> Project\Project.cs
> Project\Project.csproj

I am surprised to see Project\bin missing. It is there when I try the same
thing here.

Ignore properties can only be set on svn-controlled folders, and since you
haven't yet added Project it doesn't have any ignore properties. When you
set properties, you can add them recursively, but only already-controlled
directories will be affected.

Also, the ignore property affects only what is in that folder. If you set
ignore to "bin" on folder "Home" then "Home/bin" will be ignored, but
"Home/Project/bin" will not. You would have to set the property for
"Project" in order to get "Project/bin" ignored.

Sounds like you are expecting the ignore property to be inherited, which it
is not, and I think to make it so would be very risky. You might want to
exclude particular files from a parent directory, but not from its children.

One of the really useful features of SVN is that it finds any new files you
add to a project and reminds you that they need adding (or ignoring). If
ignore properties were propagated without you doing it explicitly, some of
that robustness would be compromised.

If you add just the Project folder first, you can set its ignore list, then
add the rest of the folders.


To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Sep 11 20:20:04 2004

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

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