The Occasional Occurence
Tagged Revision Log Messages in Mercurial
March 12, 2010 at 01:49 PM | categories: work, Software, computing, GeneralI work at YouGov and we use the Mercurial for revision control.
We tag every release in a MAJOR.MINOR.BUGFIX format. 2.32.2 for example.
Recently I wanted to get a summary of the commit log messages for each of the tagged revisions. Here is the magic command that got me the output that I wanted:
# get all log entries for releases tagged with a 2.31 MAJOR.MINOR hg tags | grep 2\.31 | cut -c33-36 | xargs -L1 hg log -r
cw