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

Re: [PATCH][repost] Don't add extra blank line to log messages

From: <kfogel_at_collab.net>
Date: 2004-03-28 00:36:18 CET

This seemed to be posted twice, and Mike Pilato already responded to
the first one, but I'll respond here just to make sure:

Patrik Rådman <pradman@abo.fi> writes:
> I didn't receive any comments to the first posting of this patch, so here
> it is again, this time with commented code and a better explanation: :)
>
> If you commit with 'svn ci . -m "Oneliner comment"' you get this:
>
> ------------------------------------------------------------------------
> r18 | patrik | 2004-03-26 20:52:58 +0200 (Fri, 26 Mar 2004) | 1 line
>
> Oneliner comment
> ------------------------------------------------------------------------
>
> ...but if you enter the log message via $EDITOR, you get this:
>
> ------------------------------------------------------------------------
> r19 | patrik | 2004-03-26 20:53:45 +0200 (Fri, 26 Mar 2004) | 2 lines
>
> Oneliner comment
>
> ------------------------------------------------------------------------
>
> The patch below removes the extra blank line.

No need for a patch -- this is almost certainly pilot error.

The first log message (from the command line) does not contain a
newline. The second one (made with $EDITOR) does. If you make
*absolutely sure* that your editor saves the log message without any
newline -- some editors automatically ensure one at the end of a file,
so be careful! -- then you will see the 'svn log' output is the same
as with the -m"Oneliner comment" method.

Hope this helps,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 28 01:47:20 2004

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.