[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: <kfogel_at_collab.net>
Date: 2006-03-01 19:00:49 CET

Alan Barrett <apb@cequrux.com> writes:
> On Tue, 28 Feb 2006, kfogel@collab.net wrote:
> > On the other hand, I do favor enforcing the format of log messages on
> > the repository side instead (an idea first proposed by Greg Hudson, if
> > I remember correctly). In other words, on the repository side we'd do
> > the same thing: ensure there's always exactly one trailng newline on
> > the log message. This also munges the user's data, in the same way.
> > It would fix legacy svn:log properties too as necessary.
>
> Yes, please. I find it surprising that
>
> svn commit -m "message"
>
> does not behave like
>
> echo "message" >messagefile
> svn commit -F messagefile

Well, that just has to do with the behavior of echo, which appends a
newline by default. If you were to do

         echo -n "message" > messagefile
         svn commit -F messagefile

then you would get the same behavior as 'svn commit -m "message"'.

(Again, I'm not opposed to Subversion enforcing line conventions. I'm
just pointing out that the user-supplied data really did differ in
your two cases.)

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 1 20:47:08 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.