[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Newlines in svn:author

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-07-18 20:25:38 CEST

pmarek@users.sourceforge.net wrote:

>>Ok, I just saw the reference to #1401. Stripping the newline(s) at the
>>end of the propval like pmarek suggests makes sense in a way.
>>
>>AFAICT, this commit will error when svn:author contains a newline
>>(even at the end). And --force will dismiss the check and commit
>>the propval as is.
>>
>>Is this the desired behaviour?
>>
>>
>From my point of view - no.
>It still prohibits simple "svn pe svn:author" - I suggested *removing* a final
>newline, at least for a defined set of properties; taking a newline away in
>all properties will lead to messages like "missing newline at end of line",
>"line not terminated", etc. in some programs.
>
>And if I remember to add the "--force" - "svn log" will be garbled.
>So there's no correct way to edit svn:author with a texteditor, which puts a
>newline at the end of lines.
>
>I'd prefer to have the (last) newline stripped off per default, and by using
>--force the message will be taken as-is.
>
>
We have code to to force correct format (strip trailing and leading
spaces from svn:eol-style, for example) for nore props. We should just
reuse the same code for svn:author, svn:date, and other revision props.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 18 20:26:37 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.