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

Re: Ignore patterns should not be case sensitive (usability)

From: Steve Sisak <sgs_at_codewell.com>
Date: Mon, 24 Mar 2008 19:43:15 -0400

At 4:10 PM -0500 3/24/08, Les Mikesell wrote:
>Steve Sisak wrote:
>>
>>Perhaps what you really want is for ignore patters to obey the
>>semantics of the file system where the is stored by default.
>
>What would that mean in the context of working copies checked out in
>different environments?

I would assume that glob expressions would obey the semantics of the
environment where the working copy was checked out:

The question is wether you use the requirement that the glob
expression match the file name or the file name match the glob
expressions.

I just checked and the Mac OS X terminal these are not equivalent --
glob expressions are case sensitive even on a non-case sensitive file
system:

sgs$ echo this is foo > foo.txt
sgs$ echo this is BAR > BAR.TXT
sgs$ ls
BAR.TXT foo.txt
sgs$ ls *.TXT
BAR.TXT
sgs$ ls *.txt
foo.txt
sgs$ ls foo.txt
foo.txt
sgs$ ls bar.txt
bar.txt
sgs$ cat foo.txt
this is foo
sgs$ cat bar.txt
this is BAR
sgs$

But note that the last "cat" succeeds because the file system is case
insensitive.

Not sure which obeys the "principal of least user astonishment", but
I'm leaning toward obeying the semantics of the filesystem where the
working copy is checked out.

Another sane choice would be to default to insensitive with an option
to force sensitivity.

YMMV,

-Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-25 00:43:58 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.