Bug #538

avatar

End of Line style is incorrect in SVN.

Added by sfb 10 months ago. Updated 9 months ago.

Status:Closed Start:05/11/2009
Priority:Normal Due date:
Assigned to:avatarsfb % Done:

100%

Category:Build Spent time: 0.50 hour
Target version:0.7.0 Estimated time:1.50 hour

Description

The eol-style for SVN should be set to "native" for all text/source files. This will prevent future CR->CRLF corruptions when multiple platforms and/or editors are involved in working on the source.

The command to accomplish this is:

svn propset eol-sytle native filename.txt

Associated revisions

Revision 1459
Added by sfb 9 months ago

Changed: #538 set eol-style native for CEGUI sample.

Revision 1527
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1528
Added by sfb 9 months ago

Changed: #538 Changed the EOL style to native and converted EOLs.

Revision 1531
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1532
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1534
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1535
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1536
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1537
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1538
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1539
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1540
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1541
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1542
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1543
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1544
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1545
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1546
Added by sfb 9 months ago

Changed: #538 Changed EOL style to native for source/text files.

Revision 1547
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1548
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1549
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1550
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1551
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1552
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1553
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1554
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1555
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1556
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1557
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1558
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1559
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1560
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1561
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1562
Added by sfb 9 months ago

Changed: #538 Fixing native EOL type for source/text files.

Revision 1563
Added by sfb 9 months ago

Fixed: #538 Fixing native EOL type for source/text files.

History

Updated by sfb 9 months ago

avatar

Here is an example script that may accomplish this. We probably want additional file extensions in there such as:

  • htm
  • html
  • txt
  • cfg
  • php
#! /bin/sh
for i in `find . -name ‘*.cpp’ \
    -or -name ‘*.c’ -or -name ‘*.h’`
do
    unix2dos $i
    svn propset svn:eol-style native $i
done

Updated by sfb 9 months ago

avatar
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1563.

Updated by sfb 9 months ago

avatar
  • Status changed from Resolved to Closed
  • Estimated time set to 1.50

Using a variation of the script I posted (I added some more file extensions) I updated the property and filtered the files to fix any lingerly CR->CRLF issues.

Also available in: Atom PDF