Re: Small question on "CVS Diff"
"Arthur Barrett" <arthur.barrett-qn/[email protected]> Tue, 5 Jan 2010 08:22:12 +1100
| Newsgroups | gmane.comp.version-control.cvs.tortoisecvs.user |
|---|---|
| Message-ID | <[email protected]> |
Torsten, > I have identified the problem: When detecting the format of > the sandbox > (DOS/UNIX), TortoiseCVS looks at the line endings of the > CVS/Root file. > In previous CVSNT releases, this file had the same line > endings as the > sandbox. > However, it appears that it now always has CRLF line endings > - leading > TortoiseCVS to believe that the sandbox is in DOS format. > > Arthur, do you have any idea why this has changed? Tony removed the --lf option altogether in 2006, but re-instated it after there was a lot of complaint on the mailing list and he found a 'safer' way to implement it. I suspect the change you have observed was a part of that process of making it safer (the files in the CVS directory should always use native line endings). Since each file can feasibly have different line endings it's probably better if TortoiseCVS examines the line endings of the file being diff'ed. Regardless of the format that CVSNT creates the file in - many windows programs will automatically re-write it with DOS line endings. The --lf option should be considered 'likely to disappear' in the future, it's not documented. If a persons workflow requires the use linux line endings on windows then I encourage them to upgrade to CVSNT server and mark the files as -kL These are the newsgroup posts about --lf: http://www.cvsnt.org/pipermail/cvsnt/2006-August/026498.html And http://www.cvsnt.org/pipermail/cvsnt/2006-September/027086.html Regards, Arthur Barrett ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev