SVN error: cannot show diff because of inconsistent of newline in the file

Source: Internet
Author: User

I used svn to compare the configuration file today. An error message is displayed, so I cannot execute the diff command to view and compare it.

Error message content:

SVN error: cannot show diff because of inconsistent of newline in the file

Later, I went to search and view to find out the cause:

Sometimes when comparing two files, the above error is caused by different line feed formats.

The cause of the error is that TortoiseMerge, a comparison tool provided by TortoiseSVN, cannot handle different line feed formats currently.

 

Therefore, I submitted a copy of the experiment, modified it, and performed the diff operation, which is indeed smooth. Then return to the version that cannot be compared at the beginning. Check it.

In the previous version, each row is CR, LF, and the other is CR, missing LF.

The original post address of the Forum responded by this expert is:

Http://topic.csdn.net/u/20111214/13/a9cc61d6-a74b-4d2b-a53f-7b7c2f04d3b0.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.