Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 15448 invoked from network); 7 Feb 2008 16:51:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 16:51:37 -0000 Received: (qmail 48184 invoked by uid 500); 7 Feb 2008 16:51:29 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 48165 invoked by uid 500); 7 Feb 2008 16:51:29 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 48156 invoked by uid 99); 7 Feb 2008 16:51:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 08:51:29 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 16:51:11 +0000 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m17Gp4h9000366 for ; Thu, 7 Feb 2008 08:51:04 -0800 (PST) Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JVV00L01NP38H00@fe-sfbay-09.sun.com> (original mail from Craig.Russell@Sun.COM) for dev@openjpa.apache.org; Thu, 07 Feb 2008 08:51:04 -0800 (PST) Received: from dhcp-umpk15-121-141.SFBay.Sun.COM ([129.146.121.141]) by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JVV00JC8O4WVQ00@fe-sfbay-09.sun.com> for dev@openjpa.apache.org; Thu, 07 Feb 2008 08:51:02 -0800 (PST) Date: Thu, 07 Feb 2008 08:50:55 -0800 From: Craig L Russell Subject: Re: Line endings In-reply-to: <7262f25e0802070801w110b7807ped30e6b60763267e@mail.gmail.com> Sender: Craig.Russell@Sun.COM To: dev@openjpa.apache.org Message-id: <82E136BE-8878-4C21-A803-F03B64F28C3E@SUN.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.915) Content-type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary=Apple-Mail-25-757556745 References: <47A9E34E.6090109@apache.org> <7D253E1A-F21D-4A90-B43E-B5850B0BE910@yahoo.com> <47AB111A.3010007@apache.org> <7262f25e0802070801w110b7807ped30e6b60763267e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-25-757556745 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit We can probably not lose history when converting if we examine all the as-is files and make the change on the appropriate machine. If they have DOS line endings, set the eol-style property to native on a DOS machine. No changes. If they have UNIX line endings, set the eol-style property to native on a UNIX machine. No changes. Craig On Feb 7, 2008, at 8:01 AM, Patrick Linskey wrote: >> On the downside, the file that was in DOS line endings was >> converted on >> the server and recorded in the change notice as the entire file >> changing. > > I really don't like the idea of losing all this easy history. Is this > line-ending stuff really a problem? Don't most modern text editors > support multiple line endings? > > It seems a waste to lose all that data just to make things easier for > Notepad users.... > > -Patrick > > On Feb 7, 2008 6:09 AM, David Ezzio wrote: >> Hi, >> >> Based on an experiment, it looks like the regimentation of existing >> files to native will be easy to perform. >> >> In r619411, I changed two files from as-is to native. One was >> present >> on my client with Unix line endings and one was present with DOS line >> endings. I changed the eol property for both files to native and >> committed. When updated from the server, they both came down with >> DOS >> line endings, the appropriate native translation for my Windows >> machine. >> >> On the downside, the file that was in DOS line endings was >> converted on >> the server and recorded in the change notice as the entire file >> changing. >> >> I propose that I find an hour or two next week and regiment all files >> with a non-native setting to the native setting (about 60% of the >> code >> base). >> >> David >> >> >> David Jencks wrote: >>> I think infra strongly suggest everyone uses these svn client >>> settings >>> to avoid most of this kind of problem: >>> >>> http://www.apache.org/dev/svn-eol-style.txt >>> >>> I think there are scripts to help normalize stuff that has strayed >>> from >>> these recommendations but I'm not sure where they are. >>> >>> thanks >>> david jencks >>> >>> On Feb 6, 2008, at 9:09 AM, Craig L Russell wrote: >>> >>>> Hi David, >>>> >>>> Thanks for volunteering to do this. >>>> >>>> I recall we discussed whether to use LF or native. But I don't >>>> recall >>>> the outcome. >>>> >>>> The reason to use LF is for Windows users who use unix tools. The >>>> reason to use native is for Windows users who use native tools >>>> (Notepad). I personally don't care, except that my svn preferences >>>> file is set up to use LF for new files (for another project). >>>> >>>> Craig >>>> >>>> On Feb 6, 2008, at 8:41 AM, David Ezzio wrote: >>>> >>>>> Hi, >>>>> >>>>> As I understand it, files within the SVN repository are either >>>>> text >>>>> or binary, and if text, they have as a property one of the five >>>>> SVN >>>>> settings: CR (Mac), LF (Unix), CRLF (DOS), native (convert to/from >>>>> client platform) or as-is (no conversion, no regimentation). >>>>> >>>>> Currently, the OpenJPA repository has text files for three of >>>>> these >>>>> settings. Most are as-is, a few are LF, and the remainder are >>>>> native. >>>>> >>>>> As I understand it, native is the preferred attribute for text >>>>> files >>>>> as SVN will take care to convert to and from the client's platform >>>>> preference upon update and commit. >>>>> >>>>> I believe it would be a relatively simple matter for me to convert >>>>> all of the files to one agreed upon format, anytime that we'd >>>>> care to >>>>> do so. >>>>> >>>>> Thoughts? >>>>> >>>>> David >>>> >>>> Craig Russell >>>> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo >>>> 408 276-5638 mailto:Craig.Russell@sun.com >>>> P.S. A good JDO? O, Gasp! >>>> >>> >>> >> > > > > -- > Patrick Linskey > 202 669 5907 Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp! --Apple-Mail-25-757556745 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGUDCCAwkw ggJyoAMCAQICECvOQSuIjHMvOZRC95BRg/wwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MTIxMDE1MjM1MVoXDTA4MTIwOTE1MjM1 MVowbDEQMA4GA1UEBBMHUnVzc2VsbDEUMBIGA1UEKhMLQ3JhaWcgTGFpcmQxHDAaBgNVBAMTE0Ny YWlnIExhaXJkIFJ1c3NlbGwxJDAiBgkqhkiG9w0BCQEWFUNyYWlnLlJ1c3NlbGxAU3VuLkNPTTCC ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKzqGlLUastboCRqc0iBoTz2ODcqpMpEyPUo nYtluchkSIoWzOW63AuoTczRt9sKfhwoK5mope+62B6Li06WJabm2UHqKAaNSuMHLsmyqvOdwbSt enY7/HxOSCMqVoyVBTRJc2M8feCSVgi7ptGq9cM+Maa64R1/p9zqaQNucceU/1uper90bWplsjAT rHgicgr9XJIQb6uYjhjlgxxnY/aispnCvLxMX+CiA2FWeeJTI7AiFlLwibTXYF4v12ToByvXtTiJ knuND8qpwhK3Wp0tL4ae8mZ0nlKjCuNnqh99ZyEyTFHZBfVx8WSWRXkY4qxCG/IDQUo7WUaefOQT 1mECAwEAAaMyMDAwIAYDVR0RBBkwF4EVQ3JhaWcuUnVzc2VsbEBTdW4uQ09NMAwGA1UdEwEB/wQC MAAwDQYJKoZIhvcNAQEFBQADgYEAEqfFNFoch0QPVKWJ4maA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