Re: [dev] SVN Hooks for formatting

2008-10-08 Thread Christian Lohmaier
Hi *,

On Wed, Oct 8, 2008 at 5:37 PM, Mathias Bauer <[EMAIL PROTECTED]> wrote:
> bjoern michaelsen - Sun Microsystems - Hamburg Germany wrote:
>> On 10/06/08 09:57, Caolán McNamara wrote:
>>> And subversion (like cvs) has a precommit hook that can e.g. reject
>>> files with tabs in them. e.g.
>>> http://wordaligned.org/articles/a-subversion-pre-commit-hook
>>
>> +1
>[...]
> Sounds good for me also.

..but don't forget to restrict that to actual source-code files...
Think of localize.sdf loosing its tabs :-)

ciao
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] SVN Hooks for formatting

2008-10-08 Thread Maximilian Odendahl

Hi Mathias,


Perhaps we can use that to also fix the problem with certain Windows
editors: they turn line ends of files checked out with Cygwin into
garbage. 


if you refer to the issue we had from time to time, I think the cause 
was the wrong implementation of the cygwin cvs client and not of an 
editor, so the problem should be gone after the switch to svn


Best regards
Max

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] SVN Hooks for formatting

2008-10-08 Thread Rich

On 2008.10.08. 18:37, Mathias Bauer wrote:

bjoern michaelsen - Sun Microsystems - Hamburg Germany wrote:


On 10/06/08 09:57, Caolán McNamara wrote:

And subversion (like cvs) has a precommit hook that can e.g. reject
files with tabs in them. e.g.
http://wordaligned.org/articles/a-subversion-pre-commit-hook 

+1

I would really appreciate such a hook, I just didnt dare to propose this 
  yet.


Have Fun,

Björn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Sounds good for me also.

Perhaps we can use that to also fix the problem with certain Windows
editors: they turn line ends of files checked out with Cygwin into
garbage. This happens because they add Windows lineends to the Unix line
ends instead of replacing them or - even better - switch to an edit mode
with Unix line ends.


i don't know what i am talking about, but maybe you want 'svn:eol native' ?
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.file-portability.html#svn.advanced.props.special.eol-style

also 
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html#svn.advanced.props.auto 
might be relevant



Ciao,
Mathias

--
 Rich

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] SVN Hooks for formatting

2008-10-08 Thread Mathias Bauer
bjoern michaelsen - Sun Microsystems - Hamburg Germany wrote:

> On 10/06/08 09:57, Caolán McNamara wrote:
>> And subversion (like cvs) has a precommit hook that can e.g. reject
>> files with tabs in them. e.g.
>> http://wordaligned.org/articles/a-subversion-pre-commit-hook 
> 
> +1
> 
> I would really appreciate such a hook, I just didnt dare to propose this 
>   yet.
> 
> Have Fun,
> 
> Björn
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Sounds good for me also.

Perhaps we can use that to also fix the problem with certain Windows
editors: they turn line ends of files checked out with Cygwin into
garbage. This happens because they add Windows lineends to the Unix line
ends instead of replacing them or - even better - switch to an edit mode
with Unix line ends.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] SVN Hooks for formatting (was: Re: [dev] VCS Keywords in License Headers)

2008-10-07 Thread bjoern michaelsen - Sun Microsystems - Hamburg Germany

On 10/06/08 09:57, Caolán McNamara wrote:

And subversion (like cvs) has a precommit hook that can e.g. reject
files with tabs in them. e.g.
http://wordaligned.org/articles/a-subversion-pre-commit-hook 


+1

I would really appreciate such a hook, I just didnt dare to propose this 
 yet.


Have Fun,

Björn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]