[PATCH] tests: unify test-diff-newlines

Mads Kiilerich mads at kiilerich.com
Wed Sep 1 07:15:19 CDT 2010


On 09/01/2010 01:52 PM, Martin Geisler wrote:
> Adrian Buehlmann<adrian at cadifra.com>  writes:
>> +  --- a/a	Thu Jan 01 00:00:01 1970 +0000
>> +  +++ b/a	Thu Jan 01 00:00:02 1970 +0000
>> +  @@ -1,2 +1,3 @@
>> +   confuse str.splitlines
>> +   embedded
>> newline
>> +  +clean diff
>> +
>
> As far as I can tell, the email contains a newline here where it should
> contain a \r. So I get this error when I try to import it:
>
>    applying patch from stdin
>    abort: bad hunk #1 @@ -1,8 +0,0 @@
>     (8 8 1 0)

http://mercurial.selenic.com/bts/issue2290 (and 
http://mercurial.selenic.com/bts/issue2308)?

I guess it would make sense if all control characters in .t output got 
encoded somehow?

Perhaps it also would be nice to have a repr-like syntax for non-ascii 
characters in input, so that all .t files would be pure ascii?

/Mads


More information about the Mercurial-devel mailing list