.py and .txt files missing svn:eol-style in trunk
These .py and .txt files don't have the svn:eol-style property set. I'm not sure they all _should_, though. Some of them are particularly bizarre, e.g. Lib\email\test\data\msg_26.txt has the svn:mime-type property set to application/octet-stream (WTF?), and then svn refuses to set the eol-style property. .\Lib\bsddb\test\test_1413192.py .\Lib\email\test\data\msg_26.txt .\Lib\email\test\data\msg_44.txt .\Lib\encodings\utf_8_sig.py .\Lib\test\bad_coding2.py .\Lib\test\outstanding_bugs.py .\Lib\test\test_defaultdict.py .\Lib\test\test_exception_variations.py .\Lib\test\test_pep263.py .\Lib\test\test_platform.py .\Lib\test\crashers\coerce.py .\Lib\test\crashers\dangerous_subclassing.py .\Lib\test\crashers\infinite_rec_1.py .\Lib\test\crashers\infinite_rec_2.py .\Lib\test\crashers\infinite_rec_3.py .\Lib\test\crashers\infinite_rec_4.py .\Lib\test\crashers\infinite_rec_5.py .\Lib\test\crashers\loosing_dict_ref.py .\Lib\test\crashers\modify_dict_attr.py .\Lib\test\crashers\recursive_call.py .\Lib\test\crashers\weakref_in_del.py .\Lib\test\crashers\xml_parsers.py .\Lib\xmlcore\etree\cElementTree.py .\Modules\zlib\algorithm.txt .\PC\readme.txt .\PC\testpy.py .\PC\example_nt\readme.txt .\PC\os2vacpp\readme.txt OK, I tried to set eol-style on all of those. svn refused to change these: svn: File 'Lib\email\test\data\msg_26.txt' has binary mime type property svn: File 'Lib\test\test_pep263.py' has binary mime type property svn: File 'PC\readme.txt' has binary mime type property svn: File 'PC\testpy.py' has binary mime type property svn: File 'PC\example_nt\readme.txt' has binary mime type property svn: File 'PC\os2vacpp\readme.txt' has binary mime type property test_pepe263 probably should be binary (it contains "funny characters"). I'll wrestle with the ones under PC/.
On Wed, Mar 01, 2006 at 12:17:16AM -0600, Tim Peters wrote:
These .py and .txt files don't have the svn:eol-style property set. I'm not sure they all _should_, though.
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. 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 "$@"
test_pepe263 probably should be binary (it contains "funny characters").
It should be text with encoding $ svn propset svn:mime-type "text/plain; charset=koi8-r" test_pep263 Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
[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 "$@"
test_pepe263 probably should be binary (it contains "funny characters").
It should be text with encoding
$ svn propset svn:mime-type "text/plain; charset=koi8-r" test_pep263
"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.
On Fri, 2006-03-03 at 23:43 -0500, Barry Warsaw wrote:
On Wed, 2006-03-01 at 00:17 -0600, Tim Peters wrote:
OK, I tried to set eol-style on all of those. svn refused to change these:
svn: File 'Lib\email\test\data\msg_26.txt' has binary mime type property
Yeah, there's no reason for that, so I've fixed it.
Or wait, you fixed it there. I fixed it in the sandbox. -Barry
participants (3)
-
Barry Warsaw
-
Oleg Broytmann
-
Tim Peters