My take on this issue is: There are basically two types of qooxdoo users:

- SDK users; they should simply use the SDK "as is" and treat it as a
black box. All involved tools that process the files of the SDK (i.e
browsers and Python) are effectively ignorant about the eol style. And
so should be the user :). I don't expect them to look at framework code.

- SVN users; these are sort of "power users", and might look at
framework code. But then I would expect them to have "power tools" at
hand, namely an editor that again hides the various line endings :).

If you are an SDK user but need to have the framework code with a
certain eol style (e.g. because you happen to add the SDK to your own
project repository), you're on your own. If you change the code, you
also take responsibility for the result (and we might not be able to
help if you run into trouble).

How you treat your project code, however, is at your sole discretion,
and 'generate.py fix' might be used to achieve what you want.

T.

On 04/01/2010 05:10 PM, Peter Schneider wrote:
> Hi Derrell,
> 
> sorry, but I have to come back to this "issue".
> 
> For what my experiences are, the subversion properties are version'ed.
> So this means the property (in our case "eol-style") has to be set to "native"
> by the one that is committing/adding the file.
> 
> Example:
> ========
> When you take a look at the "qx/bom/element/Dimension.js"[1] file for example
> the property is set. This file gets DOS line-endings!
> While "qx/bom/element/Decoration.js"[2] for example does not have that 
> property
> set and will get UNIX line-endings...at least on my machine ;)
> 
> I am not sure if you can set a 'auto-property' for the "svn checkout"
> operations. I'm only aware of the "svn add" and "svn import" automatic 
> property
> setting feature.
> 
> By the way, I checked the 'checkout' both with TortoiseSVN and with the 
> current
> command line client, both checkouts resulted in having files with mixed
> line-endings :(
> 
> If you have a tip for me how to fix this on my (working-copy) side, I would be
> happy if you would share that info ;)
> On the other hand, it might be a good idea to add the "svn:eol-style=native"
> property to all *.js files and commit that change to the repository.
> 
> Regards, and happy easter holidays
>    Peter
> 
> 
> [1]"https://qooxdoo.svn.sourceforge.net/svnroot/qooxdoo/trunk/qooxdoo/framework/source/class/qx/bom/element/Dimension.js";
> [2]"https://qooxdoo.svn.sourceforge.net/svnroot/qooxdoo/trunk/qooxdoo/framework/source/class/qx/bom/element/Decoration.js";
> 
> 
> 
> -------- Original --------
> From: Derrell Lipman
> Date: 30.03.2010 17:14
> 
>> On Tue, Mar 30, 2010 at 10:35, Daniel Wagner <[email protected]> wrote:
>>
>>> Hi Peter,
>>>
>>> I asked some of the other core devs but nobody knew a reason other than
>>> "we had to decide one way or the other so we just went with Unix-style
>>> line endings". It's just a convention, like the "two spaces for
>>> indentation" rule.
>>>
>>
>> Actually, the line ending isn't something that anyone should have to worry
>> about. svn handles line endings for various operating systems automatically
>> if you let it. Internally it will store line endings as a canonicalized LF
>> but upon checkout, convert to the line endings that are appropriate to the
>> OS being used for the checkout (and back again, upon commit). This is
>> enabled by setting the property svn:eol-style to "native". See the
>> "eol-style" section in the svn book, here:
>>
>> http://svnbook.red-bean.com/en/1.1/ch07s02.html
>>
>> Derrell
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to