[PATCH 1 of 2 STABLE] diffhelpers: add canstripcr=True to fix_newline

Yuya Nishihara yuya at tcha.org
Wed Apr 26 07:33:36 EDT 2017


On Tue, 25 Apr 2017 11:51:54 -0700, Phillip Cohen wrote:
> > Maybe it doesn't check if the line has no extra character?
> 
> Do you mean that we no longer check that the "\ No newline at end of
> file" line has a newline?

No. I meant "\ No newline at end of file (I lied)\n" would be caught wrongly
because you've changed strcmp() to strncmp().


More information about the Mercurial-devel mailing list