bzr commit: show a list of changed files in the message part of the editor

Bug #242915 reported by Markus Korn
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned
QBzr
Confirmed
Wishlist
Unassigned

Bug Description

I'm using 'bzr commit' without further arguments to write my commit messages in an editor. My current pattern for such messages looks like:

* <action> <path>/<filename>: <message for this file>

like:
* added foo/bar.txt: my message of the day
* removed baz.diff: this is not needed anymore

It would be nice if bzr commit could have a commandline option to automatically generate this action/file list above the '---bar---' in the message section.

Markus

James Westby (james-w)
Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Markus Korn (thekorn) wrote :

This patch against bzr.dev revno. 3510 is how I would fix it to fit my personal needs. Maybe there should be a more customizable solution.
I also wanted to put the code generating the list in a different function but was not sure where to put it.

Markus

Revision history for this message
Alexander Belchenko (bialix) wrote :

better solution could be to use some user-defined template, similar to template in version-info command.

Revision history for this message
Alexander Belchenko (bialix) wrote :

I'm thinking about adding next feature to QBzr: user could specify some template for commit message, and qcommit will use it to prepare a sketch of message for new commit.

Changed in qbzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Mark Hammond (mhammond) wrote :

Templates sounds like an interesting idea. For pending merges, it would also be useful if the templates included the commit messages from the pending merges - this would be particularly useful for when a pending merge has a single checkin.

This would also imply some kind of UI might need needed to adjust the template - something like a combo-box for a multi-line text widget is needed...

Revision history for this message
Robert Collins (lifeless) wrote :

I like the idea of customisation of bzr in this area; I think it would be fine to supply some knobs in bzr.conf, and definitely I would implement this via the hook system - thats the intent of it, to decouple things.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.