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

Re: Case sensitive in file name

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2006-08-14 12:34:32 CEST

On 14 Aug 2006, at 06:22, Adrian Hoe 贺文耀 wrote:

> Hi,
>
> I ran into a problem with case in file names.
>
> I have two files under version control:
>
> IMG_0999.JPG
> IMG_0999s.JPG
>
> On Linux/Mac OS X file system, I can have both IMG_0999S.JPG and
> IMG_0999s.JPG. But I can't do "svn ren" IMG_0999.JPG to
> IMG_0999S.JPG. It says "File IMG_0999S.JPG already exists".

The default HFS+ file system on OS X is case preserving but case
insensitive similar to Windows. Since 10.4 it has been possible to
format a file system as HFS+, case sensitive, which would be one work
around. Personnally, I'd be reluctant to do that because

a) there may be apps that expect case insensitive and break otherwise
b) I think (and this is JUST MY OPINION, so let's not have yet
another case sensitivity war) that case preserving, case insensitive
is the right way for a file system to be, at least in English Locales.

>
> I would like to use "S" and "s" to differentiate the size of the
> image file.

I would suggest a different naming convention to get around your
problem. How about "small" and "large" or equivalent in your first
language?

>
> Is this a bug or a feature of Subversion?
>
> Thanks and regards,
> --
> "If you missed the rising sun and the morning dew, don't miss the
> beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15
> 2004
> http://adrianhoe.com
>
>
Received on Mon Aug 14 12:43:02 2006

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.