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

Re: Global Ignore Pattern Issues

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-04-06 22:16:25 CEST

Aaron Davies wrote:

> OK, it looks like I may have been at least partially barking up the
> wrong tree on this. In our layout, the "bin" folders (and all their
> parents, of course) are in fact versioned, in the cases that are

Then you can't ignore them.

> showing up. However, the "bin/com" folders contained within them are
> not. Shouldn't adding "bin/com */bin/com */bin/com/*" to the pattern
> ignore these as well, or am I confused again? (It doesn't.)

No. Because depending on what folder you're showing the status for,
Subversion uses relative paths or even no paths at all. So when you're
ignoring bin/com and Subversion checks the status inside the bin folder,
it can't ignore the com folder because 'com' doesn't match 'bin/com'.
And as I said, it depends on which path you right-clicked on to show the
status: sometimes it really checks for the whole relative paths, so in
those cases you *can* ignore the bin/com folder with that pattern, but
not in all cases.

> For reference, my entire ignore pattern is:
>
> build deploy dist JuggerNet bin/com */bin/com */bin/com/* bin */bin
> */bin/* obj *.dll *.pdb *.csproj.user *.suo _ReSharper*
> *.resharperoptions *.class

Why don't you use */com/* */com to ignore the com folder inside the bin
folder?

> As you can see, this is a multi-language project using both Java
> (built in Eclipse) and C# (built in Visual Studio). (Some of those
> patterns are probably redundant (like obj); I been focusing on getting
> all the files I want ignored, ignored, not optimizing the path.)

What you should ask yourself here: why did you version the bin folder in
the first place? Maybe you can reorganize your source tree to put *all*
generated files into one folder and then just ignore that folder with
the svn:ignore property (take our project as an example).

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Apr 6 22:17:41 2006

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

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