Tags in the ChangeLog output?

Asked by jpfle


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.).


Question information

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

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 :

Thanks Vincent Ladeuil, that solved my question.

Revision history for this message
jpfle (jpfle) said :

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.