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

Re: Include / Exclude Path woes Was: TSVNCache and Handles on USB Dri ve

From: Gavin Lambert <tsvn_at_mirality.co.nz>
Date: 2006-12-18 00:47:11 CET

Quoth Stefan Küng:
> Imagine the following wc-layout:
> c:\Delphi
> c:\Delphi\src
> c:\Delphi\generatedoutput
> Now, if you set c:\Delphi* as the include pattern, then
> c:\Delphi\generatedoutput is included too. That's because the include
> pattern has priority over the exclude pattern. And the priority is that
> way because you have a *lot* more to exclude than to include. That way,
> you can exclude whole drives and just include *some* folders. If the
> priority were the other way around, you'd have to exclude all your
> unversioned folders separately.

Couldn't you do it as 'most-specific-path-wins'?

So in the above case, you'd set it up like so:

Include: C:\Delphi
Exclude: C:\; C:\Delphi\generatedoutput

Now, everything in C:\ would get excluded, except for C:\Delphi (and
subfolders), since they've been specifically named as includes. However
C:\Delphi\generatedoutput (and subfolders) would be excluded regardless,
since it's been specifically named.

(If you really wanted to, you could then name
C:\Delphi\generatedoutput\foo\bar as an Include, which overrides the
exclusion again.)

This might make the directory recursion a little more complicated, since
an exclusion isn't necessarily final, but at least from the users'
perspective this seems to me like the most understandable and flexible
way to do it.

However I don't actually see most of this as a likely use case -- ok, so
you'd probably exclude C:\ and include C:\Delphi, but why would you then
exclude C:\Delphi\generatedoutput? Typically you'd either flag it as an
ignore (in which case it'd get greyed out) or you'd just not worry about
it (in which case it'd get a question mark). The icons aren't really
all that interesting if it's not a working copy folder anyway. So I
still can't see why you wouldn't make "C:\Delphi" automatically include
subfolders. Having to put the * in just doesn't make any sense.

To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Dec 18 00:47:34 2006

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