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

Case-insensitive file names: better error messages [was: case sensitivity questions - oh no!!]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-07-26 15:20:16 CEST

Simon Large wrote:
> 2. When a case collision does occur on the client, the error messages
> simply says something like "a file of this name already exists" which,
> while it is true, does not communicate the root cause very well. Is it
> possible to define a separate error condition for case collisions? It
> can be detected fairly easily on case-insensitive/case-preserving
> filesystems:
> If a 'file exists' error occurs, query the filesystem for the name of
> that file and compare with the filename SVN is using. If they are not

I think that would be a good enhancement. Would you like to have a go at it?

That collision is one way in which a case mismatch can cause a problem. I feel
there must be other failure modes, such as a file name specified with the wrong
case not being found internally (e.g. in the "entries" file) because a
case-sensitive search is used. You might want to look for such things as well
as the error that you mentioned.

- Julian

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 26 15:21:08 2005

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

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