[issue1229] hg diff: produce small diff's for mixed eols (in repo)

ab mercurial-bugs at selenic.com
Fri Jul 18 15:41:40 CDT 2008


New submission from ab <abraendle at gmx.de>:

For "hg diff", if the files in the repository have different line endings (\n vs
\r\n),
it produces huge diffs with all lines as "-", then all lines as "+".

So: "hg diff" should have an option like in "cygwin diff":
  --strip-trailing-cr  Strip trailing carriage return on input.

i.e. remove \r at end of input lines before diff'ing.

Note: hg diff -w does not work:
 -w --ignore-all-space     ignore white space when comparing lines

----------
messages: 6528
nosy: ab
priority: feature
status: unread
title: hg diff: produce small diff's for mixed eols (in repo)

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1229>
____________________________________________________



More information about the Mercurial-devel mailing list