Opened 16 years ago

Closed 16 years ago

#6545 closed (fixed)

Setting the svn:eol-style property to native for all files

Reported by: John Kern Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords: svn unix windows eol
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I've just checked out django files on a Windows XP machine. If you open py files in vim and write :set ff you get fileformat=dos. Since most django developers work on Mac OS X or Linux (fileformat=unix) this means that you set the svn:eol-style property for these files to native letting subversion to automatically chose the fileformat when a client check out the files. That's a good thing. Unfortunately there are many files with the svn:eol-style property not yet set to native: as a consequence they are checked out on a windows computer as unix files. Of course you can read them with a good text-editor but in notepad they are a mess. As an example see the txt files in the docs folder. I'm not an expert in software development with svn but my suggestion is to set the svn:eol-style property to native for the top folder containing all other folders and files: you will be sure that any file will be correctly checked out and committed also by Windows users (if any) among django developers.

Change History (4)

comment:2 by anonymous, 16 years ago

I don't think you can set this property at the top folder level. This property works only for text files, not binary ones. Probably you have to manually set this property for every present and future text file.

comment:3 by Matt Boersma, 16 years ago

This won't work--svn:eol-style is a relevant property only on text files, not directories. Further, setting up auto-props works only for svn clients, not a server.

An alternative would be to add a pre-commit script in svn to set the svn:eol-style property for text files. Or we can just sweep through the codebase and set it by hand every so often, as apparently we do for the svn:ignore property on dirs.

comment:4 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [7294]) Added "svn:eol-style native" to every text file in the tree (*.txt, *.html,
*.py, *.xml and AUTHORS, etc). Added "svn:ignore *.pyc" to some directories in
tests/regressiontests/ that were previously missing it.

Fixed #6545, #6801.

Note: See TracTickets for help on using tickets.
Back to Top