Bazaar commit template

Asked by Eric on 2009-05-26

I need everyone on my project committing work into Bazaar to provide a commit comment in a specific format.

I have written a Bazaar hook to provide a commit message template. This works fine when using Bazaar directly, but when I do a commit from Eclipse, using the Bazaar plugin, the template message does not appear.

Is there any way I can provide the Bazaar Eclipse plugin with a commit message template (i.e. a default commit message), either using the Bazaar hook or by a different method ?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Plugin for Eclipse Edit question
Assignee:
No assignee Edit question
Solved by:
Guillermo Gonzalez
Solved:
2009-05-26
Last query:
2009-05-26
Last reply:
2009-05-26
Best Guillermo Gonzalez (verterok) said : #1

Hi Eric,
Thanks for bringing this issue.
Currently there is no way to specify a custom template for the commit in bzr-eclipse. (please file a bug about this! ;)
bzr-eclipse uses 'bzr commit --file=<tempfile_with_the commit_message specified_in_the_dialog>' under the hood, and looks like using the --file option override the hook, maybe a bzr bug? or maybe just a UI decision.

FWIW, It should be fairly easy to extend bzr-eclipse to allow a custom template, so file a bug and I'll try to move it up in the queue as this is a nice feature.

Regards,

Eric (eric-dangoor) said : #2

Thanks Guillermo Gonzalez, that solved my question.