Django

Code

Ticket #6545 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: John Kern Assigned to: nobody
Milestone: Component: Uncategorized
Version: SVN Keywords: svn unix windows eol
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Change History

02/04/08 08:34:13 changed by JK

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

02/04/08 08:47:17 changed 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.

02/04/08 16:08:41 changed 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.

03/18/08 09:54:40 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(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/Change #6545 (Setting the svn:eol-style property to native for all files)




Change Properties
Action