[Python-Dev] .py and .txt files missing svn:eol-style in trunk (original) (raw)

Tim Peters tim.peters at gmail.com
Sat Mar 4 03:53:03 CET 2006


[Oleg Broytmann[

My experience shows that if the developers use different OSes (our team uses Linux and Windows) it helps very much to set svn:eol-style to native for all text files - *.py, *.txt, etc, except for files with special requirements.

Yes.

So I use the following shell script

#! /bin/sh svn add "$@" svn propset svn:eol-style native "$@" svn propset svn:keywords "Date Rev Id" "$@" to add *.py files to the repository. (I don't want to put it in a global configuration because I have different requirements for different projects.) For other text files the same except keywords: #! /bin/sh svn add "$@" svn propset svn:eol-style native "$@"

testpepe263 probably should be binary (it contains "funny characters"). It should be text with encoding $ svn propset svn:mime-type "text/plain; charset=koi8-r" testpep263

"The reason" it's binary is given in a comment at the top of the file:

""|"

This file is marked as binary in the CVS, to prevent MacCVS from recoding it.

"""

So someone on a Mac should check whether the Mac flavor of SVN also screws it up.



More information about the Python-Dev mailing list