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

Re: Case-insensitivity causes data loss under win32

From: SteveKing <steveking_at_gmx.ch>
Date: 2003-10-07 16:42:57 CEST

----- Original Message -----
From: "John Peacock" <jpeacock@rowman.com>

> In order to warn on capitalization changes, the loop would look like this:
>
> open directory
> while filename = next file
> does this filename exist in textbase (i.e. svn knows it)
> YES - process file (update/merge/whatever depending on
timestamp/etc.)
> * NO - scan the directory for matching files with different caps
> end while
> close directory
>
> That step at * above could potentially mean a complete scan of the
directory
> (and some people like to put 5000+ files in a single directory!).

If you would do it that way, then yes, the performance issue would be huge.
But that would be like a brute-force attack.
Much simpler:
  does this filename exist in textbase (and compare the paths
case-insensitive)
the standard c-library has comparison functions which ignore the case of
strings.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 7 16:44:12 2003

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.