Wednesday, June 24, 2015

Prevent TortoiseCVS from converting LF to CRLF in checkout

If you have used a UNIX-like CVS client to check in a file, and the file has CRLF at the end of each line -- that means the file is in DOS format, when you check out the file with TortoiseCVS, the file will have CRCRLF at the end of each line.

That is because when TortoiseCVS checks out the file, it converts LF to CRLF for each line by default.

We can make TortoiseCVS stop this behavior by using an option during the checkout:
  • On an Windows Explorer, right click and choose menu CVS Checkout...
  • The TortoiseCVS - Checkout Module dialog is shown.
  • Select the Options tab on the dialog.
  • At the bottom, check the Use UNIX line endings checkbox.
  • Continue the checkout process and the files will be checked out without the LF to CRLF conversion.

No comments:

Get This <