[qbzr] qcommit: support for templates/drafts of commit message?

0 views
Skip to first unread message

Alexander Belchenko

unread,
Apr 29, 2010, 7:52:57 AM4/29/10
to qb...@googlegroups.com
Hi Gary,

We have NEWS.txt file in the qbzr sources, and many other projects have
something similar. Many projects using Changelog files, etc.

I'm often create commit message based on the changelog entry by open
diff for that file, copy-paste added text, then edit if necessary.
I wonder we might catch the diff from such changelog/news files and use
newly added texts as the template of commit message.

It seems bzr has some sort of the hooks to get the message template.
http://doc.bazaar.canonical.com/bzr.2.1/en/user-reference/hooks-help.html#commit-message-template

Maybe we need to use that hook in qcommit?

--
All the dude wanted was his rug back

--
You received this message because you are subscribed to the QBzr group.
To post to this group, send email to qb...@googlegroups.com
To change your subscription options, visit this group at
http://groups.google.com/group/qbzr

Alexander Belchenko

unread,
Apr 29, 2010, 8:33:34 AM4/29/10
to qb...@googlegroups.com, Bazaar mailing list
Alexander Belchenko пишет:
> Hi Gary,
>
> We have NEWS.txt file in the qbzr sources, and many other projects have
> something similar. Many projects using Changelog files, etc.
>
> I'm often create commit message based on the changelog entry by open
> diff for that file, copy-paste added text, then edit if necessary.
> I wonder we might catch the diff from such changelog/news files and use
> newly added texts as the template of commit message.
>
> It seems bzr has some sort of the hooks to get the message template.
> http://doc.bazaar.canonical.com/bzr.2.1/en/user-reference/hooks-help.html#commit-message-template
>
>
> Maybe we need to use that hook in qcommit?

Quick chat with Jelmer and Andrew in #bzr reveals that this hook is
CLI-only thing and should be used only when actual commit is started.
Therefore we can't use it.

Should we invent our own hook? Why not?

Andrew Bennetts

unread,
Apr 29, 2010, 9:00:51 AM4/29/10
to Alexander Belchenko, qb...@googlegroups.com, Bazaar mailing list
Alexander Belchenko wrote:
[...]
> >It seems bzr has some sort of the hooks to get the message template.
> >http://doc.bazaar.canonical.com/bzr.2.1/en/user-reference/hooks-help.html#commit-message-template
> >
> >
> >Maybe we need to use that hook in qcommit?
>
> Quick chat with Jelmer and Andrew in #bzr reveals that this hook is
> CLI-only thing and should be used only when actual commit is
> started. Therefore we can't use it.
>
> Should we invent our own hook? Why not?

(I think the claim that it is CLI-only is too strong, as I tried to
explain on IRC.)

Jelmer's suggestion that you propose an interface for the hook that
you'd like to use is a good one. It will help us understand your
requirements better, specifically exactly what information you feel
should be available to the hook to help it generate the template.

-Andrew.
Reply all
Reply to author
Forward
0 new messages