Code

Opened 6 years ago

Closed 6 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: master
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: UI/UX:

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.

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by JK

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by anonymous

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 Changed 6 years ago by mboersma

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 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.