Tags in the ChangeLog output?

Asked by jpfle

Hi,

I output my changelog (gnu format) with this command:

bzr log --long --log-format gnu-changelog > ChangeLog

I wondered if it's possible to display tags in this output? It would be very practical to see tags too, since I use them to mark releases (e.g. tag v1.0, tag v1.1, etc.).

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Vincent Ladeuil
Solved:
Last query:
Last reply:
Revision history for this message
Best Vincent Ladeuil (vila) said :
#1

Yes, it's possible.

I don't know the specifics of the gnu ChangeLog format, but if there is an "official" way to mention tags then that should be part of the GnuChangelogLogFormatter defined in bzrlib/log.py.

If not (and I think there is no official way to mention tags :), you can define your own LogFormatter in a plugin, based on the existing one and then use:
   bzr log --long --log-format my-own-log > ChangeLog

Revision history for this message
jpfle (jpfle) said :
#2

Thanks Vincent Ladeuil, that solved my question.

Revision history for this message
jpfle (jpfle) said :
#3

Thanks. I put below more information if people are interested:

Writing plugins for Bazaar: http://bazaar-vcs.org/WritingPlugins

A list of existing plugins: http://bazaar-vcs.org/BzrPlugins

In this list, see "GNU changelog formatter for bzr log", a bit different of gnu-changelog implemented in bzr, and including tags.