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

Re: patch newline in log messages

From: John Peacock <jpeacock_at_rowman.com>
Date: 2006-02-28 15:38:08 CET

Olleg Samoylov wrote:
> Because user don't enter newline. User enter the same message with "svn
> ci -m" and with "svn ci" and text editor. Subversion in case of text
> editor add '\n' at the end of log message, in case of "svn ci -m" not.
>
> "svn log" must show only log message writed by user, nor more nor less.

Whether the *editor* appends a newline or not is up to the editor
(indeed, some can be configured to not do so), but it essentially
unknowable to Subversion. As such, it is impossible to come up with a
single heuristic that covers all situations.

If the trailing newline offends you, write your log entries into a file
using the equivalent of `cat > logfile` and then commit using -F. It
may also be possible to write a pre-commit hook to clean the log file.

No matter how violently you disagree with the current Subversion
behavior, all you are accomplishing now is pissing people off. Please
let it go.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 28 16:18:31 2006

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.