Hi Donald, On Feb 24, 2009, at 11:44 AM, Donald Woods wrote:
Reviving this thread, as I'm also finding source files, like -openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ EntityManagerImpl.java that are using the Windows EOL chars, which causes patches generated by "svn diff" on Linux/Mac to replace the content of the whole file to fix the EOL chars...Still don't see why there is such a concern about SVN commit noise or that it adds one svn log entry per file. The benefits outweigh the svn commit email and log history addition.
I'm not parsing this paragraph correctly, as it sounds self- contradictory. Could you review and make sure it's what you mean?
My position is that we should adopt a uniform line end policy and change all of the svn line endings properties in the project separate from any code changes. Is this also what you are proposing?
Thanks, Craig
There are perl scripts floating around to recursively fix source branches (can't find one right now), or you can do it for every subdir - svn propset svn:eol-style native -R openjpa-persistence/src/main/ java/org/apache/openjpa/persistence/*.java-Donald Craig L Russell wrote:I'd agree to these changes if the svn eol property were checked in at the same time. That solves the long term problem. See http://svnbook.red-bean.com/en/1.1/ch07s02.html for details on svn:eol-style. For the project, we need to decide which eol style to use. Both/ either LF and native work fine for most people.Craig On Feb 4, 2009, at 1:44 PM, Kevin Sutter wrote:Mike,I remember those conversations... :-) What's the advantage of making or not making these changes? This is a huge change. And, other than totally tilting our doc change history, does it really buy us anything? I thought that as the document gets updated, then the sections would be converted appropriately. And, even if we do this change, what prevents us from corrupting it again? It seems that this is just an on-going situation. Or, are there some controls that can be put in place to ensure that theseincorrect EOL characters stay out once they are removed? KevinOn Wed, Feb 4, 2009 at 3:02 PM, Michael Dick <[email protected] >wrote:This issue came up a few years ago while we were in the incubator. At the time (if memory serves) we decided not to fix existing code due to thenoise on SVN.I'm happy to commit the changes Donald has graciously provided if folks agree the noise is acceptable, but I'd prefer to make sure since there'sprecedent against cleaning up eol chars. Any agreement / dissent to committing the patch? -mikeOn Wed, Feb 4, 2009 at 1:01 PM, Donald Woods (JIRA) <[email protected] >wrote:[https://issues.apache.org/jira/browse/OPENJPA-896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]Donald Woods updated OPENJPA-896: --------------------------------- Attachment: OPENJPA-896-trunk.patch Patch file which removes the Windows Ctrl+M EOL chars.For Windows users, you can use a program like SlickEdit to resave thefilesin Unix format (and fix your svn config.) For Unix/Linux users, use the "dos2unix *.xml" command.For Mac users, you need to provide a dos2unix script that uses the trcommand - {noformat} #! /bin/sh for x do echo "Converting $x" tr -d '\015' < "$x" > "$x.tmp" mv "$x.tmp" "$x" done {noformat}lines when checked out to non-Windows platforms (like MacOSX and Linux),Several doc files include Windows EoL chars ------------------------------------------- Key: OPENJPA-896 URL: https://issues.apache.org/jira/browse/OPENJPA-896 Project: OpenJPA Issue Type: Bug Components: docs Reporter: Donald Woods Priority: Trivial Fix For: 2.0.0 Attachments: OPENJPA-896-trunk.patchSeveral of the doc files include the Windows Ctrl+M chars at the end ofdueto the committer not using the ASF suggested svn config values - http://www.apache.org/dev/svn-eol-style.txtparticular issue is OS-specific line-endings for text files. When you addFrom http://www.apache.org/dev/version-control.html - Configuring the Subversion client Committers will need to properly configure their svn client. Oneanew text file, especially when applying patches from Bugzilla, firstensurethat the line-endings are appropriate for your system, then do ...svn add test.txt svn propset svn:eol-style native test.txtYour svn client can be configured to do that automatically for somecommon file types. Add the contents of the filehttp://www.apache.org/dev/svn-eol-style.txt to your ~/.subversion/config file. [Note: for Windows this is normally found at C:\Documents andSettings\{username}\Application Data\Subversion\config]svn:executable=* should be applied to those script files (e.g. .bat,Some files may need additional properties to be set, for example.cgi,.cmd, .sh) that are intended to be executed. Since not all such files are necessarily intended to be executed, the executable property should notbemade an automatic default.However, you should still pay attention to the messages from your svnclient when you do 'svn commit'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:[email protected] P.S. A good JDO? O, Gasp!
Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:[email protected] P.S. A good JDO? O, Gasp!
smime.p7s
Description: S/MIME cryptographic signature
