On Feb 9, 2004, at 12:38 PM, Florian Weimer wrote:
> Adrian Robert wrote:
>
>> Does anyone here actually think it is more important to inform
>> auto-parsers of the number of lines in the log message (which could
>> surely be determined anyway by just counting newline characters or
>> whatever,
>
> The line count is important if you want to parse a stream of log
> messages, and message separators occuring in log messages aren't
> escaped
> in some way. CVS has this problem and that's the reason for presenting
> the line count in Subversion, I guess. At least I immediately thought
> "ah, good idea" when I saw these line numbers for the first time. 8-)
Good point, though it seems like a bit overengineering for corner cases
(if 79 contiguous dashes was a string thought likely to occur in log
messages, perhaps a more clever delimiter, throw in an additional
character of some sort, for example, might have worked). Still, given
the state now maybe the best solution would be to add an option to svn
log, say "-m [include additional annotation for automated parsing]",
and to _leave out_ the "X lines" message by default -- it's just noise
to human readers.
I'm not bashing the designers/implementers at all, this is something
that only shows up through hindsight... And although many people might
understand right away what the "X lines" means (and subsequently tune
it out), given that many users will be coming from CVS (see example log
message below), it seems worthwhile getting rid of it in the default
case.
CVS:
----------------------------
revision 1.2
date: 2003/04/10 19:51:00; author: arobert; state: Exp; lines: +14 -4
updated for recent changes
----------------------------
SVN:
------------------------------------------------------------------------
r368 | arobert | 2004-02-09 11:58:57 -0500 (Mon, 09 Feb 2004) | 1 line
testing
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 9 19:15:21 2004