[Feature request] Automatic ChangeLog?

Samuel Tardieu sam at rfc1149.net
Sat Jul 23 16:27:58 CDT 2005


>>>>> "Ollivier" == Ollivier Robert <roberto at keltia.freenix.fr> writes:

Ollivier> Arch/tla/baz have a wonderfully useful feature: automatic
Ollivier> generation of ChangeLogs based on commit messages... Do you
Ollivier> think it could be possible to have it?

You can try the attached patch (against the tip). While I agree format
strings would be better, I have the same need as you regarding
ChangeLogs :)

To use it, add "--changelog" to any command (such as "log") which
displays changeset headers. Tags will also appear except for "tip"
unless you are in verbose mode (it is IMO not desirable or useful to
have "tip" present by default in a human-readable ChangeLog).

Example:

% hg log --changelog

Sat Jul 23 23:24:55 2005  Samuel Tardieu <sam at rfc1149.net>

   * Implement a ChangeLog-like output style

Sat Jul 23 21:11:49 2005  mpm at selenic.com

   * Fixes for annotate
   
   Handle files that aren't in the repo
   Handle empty files

Sat Jul 23 18:14:05 2005  Thomas Arendsen Hein <thomas at intevation.de>

   * Added tests for bug with three-way-merging of old tip, tip and cwd.

[...]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: changelog.patch
Type: text/x-patch
Size: 4688 bytes
Desc: Add --changelog option to Mercurial
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050723/97578463/changelog.bin
-------------- next part --------------

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam


More information about the Mercurial mailing list