[PATCH] Postprocessing of commit message from external editor

Alexander Belchenko bialix at ukr.net
Sat Oct 1 20:05:21 BST 2005


Module bzrlib/msgeditor.py has the smart post-processing of commit
message edited in external editor. But I think this post-processing need
to a little fix.

When I commit with

bzr ci -m "Message"

this message stored in revision history without post-processing. This
message have not newline in the end, and bzr log show all messages
correct. Long log use dashed line as separator of revisions, short log
use empty line. All great.

When I edit commit message in external editor it is always
post-processed and for my last line appended newline (\n).
In this case when I do bzr log between revisions appears extra empty
line. This additional empty line simply eats screen space and not needed
at all.

I propose to change post-processing of commit message from external
editor by deleting last newline symbol. Proposed patch attached.

Alexander



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msgeditor.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051001/ec767f96/attachment.diff 


More information about the bazaar mailing list