Bug in 'hg diff'
Paul Sargent
psarge at gmail.com
Mon Jul 23 18:24:53 CDT 2007
All I meant to do was point out that the "misread" phrase could be
interpreted to include the behaviour the original poster expected.
On 24 Jul 2007, at 00:09, Bela Babik wrote:
> From: http://www.opengroup.org/onlinepubs/009695399/utilities/
> diff.html
>
> "Cause any amount of white space at the end of a line to be treated as
> a single <newline> (that is, the white-space characters preceding the
> <newline> are ignored) and other strings of white-space characters,
> not including <newline>s, to compare equal."
>
> 1->2 is not a change in amount, but from 0 to 1 definitely is (you
> didn't have any whitespace originally on the beginning of the line).
>
> --
> teki
>
>
>
> On 7/24/07, Paul Sargent <psarge at gmail.com> wrote:
>>
>> On 23 Jul 2007, at 23:24, Will Maier wrote:
>>
>>> On Mon, Jul 23, 2007 at 11:57:51PM +0200, Guido Ostkamp wrote:
>>>> it appears the '-b' option (ignore whitespace changes) of 'hg
>>>> diff' is not working at all.
>>>
>>> You're misreading -b:
>>>
>>> $ hg help diff
>>> [...]
>>> -b --ignore-space-change ignore changes in the amount of
>>> white space
>>> ^^^^^^
>>
>> Isn't a '\n' changing into '\n ' a change in the "amount" of white
>> space?
>>
>> or if you only want to walk about changes within lines....
>>
>> Isn't changing zero spaces into two spaces a change in the "amount"
>> of white space?
>>
>> <annoying pedant mode off>
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
More information about the Mercurial
mailing list