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

Re: TMerge whitespace handling

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-03-17 09:27:08 CET

Simon Large wrote:
> Tobias Schäfer wrote:
>>>> Three checkboxes could actually replace the four radio buttons and
>>>> offer
>>>> even more combinations:
>>>> [ ] Ignore leading whitespace
>>>> [ ] Ignore inline whitespace
>>>> [ ] Ignore ending whitespace
>
> You could reduce the combinations to something more sensible:
> [ ] Ignore all whitespace
> [ ] Ignore leading whitespace
> [ ] Ignore ending whitespace
>
> If the first box is checked, the other two are disabled - ignoring
> inline space but showing leading/trailing space doesn't make much sense.
>
> If you are *not* ignoring all whitespace, then you can choose which
> combination of leading/trailing spaces suits you best.
>
>>>> I'm not sure if this is needed though.
>>> No, probably not. I'm just being picky and looking for
>>> inconsistencies ;-)
>>
>> Anyone out there who needs it?
>
> Why does anyone need to ignore ending whitespace for python? And if you
> need to ignore it for python, why not in any other language?

Subversion 1.4 will have options to ignore whitespaces when diffing.
Those options are:
   /** Ignore no whitespace. */
   svn_diff_file_ignore_space_none,

   /** Ignore changes in sequences of whitespace characters, treating each
    * sequence of whitespace characters as a single space. */
   svn_diff_file_ignore_space_change,

   /** Ignore all whitespace characters. */
   svn_diff_file_ignore_space_all

So, no "ignore leading" or "ignore trailing" whitespaces. Do we really
need those? We could drop those, and then just use the same ones as
Subversion has.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Mar 17 09:27:27 2006

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

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