Hi,

I never noticed before, hg log by default prints just one line from
comment:

$ hg log -r 5463:5465
changeset:   5463:3b204881f959
user:        Bryan O'Sullivan <bos at serpentine.com>
date:        Mon Oct 15 12:57:01 2007 -0700
summary:     osutil: use fdopendir instead of dirfd

changeset:   5464:7dafd9ab3979
user:        Georg.Koltermann at mscsoftware.com
date:        Thu Apr 12 13:11:30 2007 +0200
summary:     hgk: colorize commits by authors

changeset:   5465:9873cbb134b2
user:        NIIMI Satoshi <sa2c at sa2c.net>
date:        Thu Oct 11 05:58:54 2007 +0900
summary:     mercurial.el, mq.el: remove runtime dependencies on CL package


It does not suit me very well, so I created myself some template and post it
here with hope that you may find it useful too (add to hgrc):

[ui]
logtemplate = 'changeset:   {rev}:{node|short}\nuser:        {author}\ndate:    
    
{date|isodate}\nlog:\n{desc}\n--------------------------------------------------------------------\n'


The log now looks like:

$ hg log -r 5463:5465
changeset:   5463:3b204881f959
user:        Bryan O'Sullivan <bos at serpentine.com>
date:        2007-10-15 12:57 -0700
log:
osutil: use fdopendir instead of dirfd
--------------------------------------------------------------------
changeset:   5464:7dafd9ab3979
user:        Georg.Koltermann at mscsoftware.com
date:        2007-04-12 13:11 +0200
log:
hgk: colorize commits by authors

Color commits by author. Colors will be assigned to authors by using a 
configurable list of colors. The line corresponding to current id (the version 
currently in the working tree) is highlighted in a special font which is also 
configurable. There is provision to assign fixed colors to authors. See .gitk 
comment for details.
--------------------------------------------------------------------
changeset:   5465:9873cbb134b2
user:        NIIMI Satoshi <sa2c at sa2c.net>
date:        2007-10-11 05:58 +0900
log:
mercurial.el, mq.el: remove runtime dependencies on CL package

* (require 'cl) at compile-time

* don't use map()
--------------------------------------------------------------------

-- 
        Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/scm-migration-dev/attachments/20071030/83bf1ca0/attachment.bin>

Reply via email to