short and long log messages
Alexander Belchenko
bialix at ukr.net
Mon May 15 19:05:28 BST 2006
Matthieu Moy пишет:
> Hi,
>
> Something I liked in GNU Arch was the short Vs long log message (-s and
> -L on the command line, or Summary: ... and body in the log message
> header).
>
> This allows a simple one-line description, convenient in, at least, "bzr
> log --line" and perhaps "bzr log --short", as well as a detailed one
> (that you can get with "bzr log -r XX").
>
> AFAIK, there is no such thing in bzr. Indeed, a user can use the first
> line of the log message as a short description, and the next as a long
> one. I think this is the way to do it, but this deserve a little support
> in bzr itself: the log formatter for "--line" and "--short" should split
> the message at the first newline, instead of truncating after a number
> of characters. The patch below does this for --line.
>
> Also, this should be documented as such (in the tutorial probably).
>
> Any opinion?
+0 on concept.
-1 on realisation by changing current log formatters.
I think it's better to write plugin that register new log formatter
object via bzrlib.log.register_formatter() function -- yes, it's already
present in bzr.dev -- rather than break current behavior of built-ins
formatter.
--
Alexander
More information about the bazaar
mailing list