[issue232] diff command confused by control character

Giuseppe Bilotta bilotta78 at hotpop.com
Tue May 9 02:18:48 CDT 2006


On Mon, 8 May 2006 09:15:38 -0400, Chris Mason wrote:

> On Monday 08 May 2006 00:54, Bryan O'Sullivan wrote:
>> New submission from Bryan O'Sullivan <bos at serpentine.com>:
>>
>> Found by Christian Ebert <blacktrash gmx net>.
>>
>> The diff command prints bogus output when confronted with newline-like
>> characters.  See the attached bundled repo for details; unbundle it into an
>> empty repo, then:
>>
>>   hg diff -r0 -r1
> 
> Seems to be a python feature, cr counts as a newline to str.splitlines().  
> Anyone know if there is some knob I can turn for this?

Not that I'm aware of. What about using split('\n')?



-- 
Giuseppe "Oblomov" Bilotta

Hic manebimus optime



More information about the Mercurial mailing list