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

Re: BUG: TortoiseMerge "Ignore case changes" option is broken

From: <khym_at_azeotrope.org>
Date: 2007-03-03 18:34:24 CET

On Thu, Mar 01, 2007 at 09:52:13PM -0600, wrote:
> Yes, I agree that the "Ignore case changes" is pretty useless as it is.
> That option should behave as "diff -i" does:

FWIW, I tried looking into fixing this myself, and it turns out that
TortoiseMerge doesn't implement the diff algorithm itself--it relies on a
SVN library to do the real work, and SVN doesn't support case-insensitive
diffs. TortoiseMerge's "Ignore case changes" is a bit of a kludge to
simply not highlight case changes in the changes that SVN's diff returns.

I found this thread about adding various enhancements to svn diff:
http://svn.haxx.se/dev/archive-2006-02/0259.shtml , but it looks like
it was decided to not add case-insensitivity due to encoding and locale
problems--the diff algorithm first has to know the encoding of the file
in order to do a case-insensitive compare, but apparently SVN doesn't
have that info. But even if it did, what constitutes a case-insensitive
comparison depends on your locale too. As an example, in Turkish,
lowercase "i" and uppercase "I" do not compare the same--the uppercase
version of "i" is "I" with a dot on top, and the lowercase version of
"I" is "i" without the dot on top.

That said, I personally only need support for ASCII encoding and
English...

-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 31 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Mar 3 18:34:40 2007

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

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