[PATCH 0 of 2] keyword: 2 more date filters, alternate svn-like default keywordmaps

Christian Ebert blacktrash at gmx.net
Wed Feb 10 09:14:04 UTC 2010


Hi,

This patch series introduces svn-like keywords as alternate
default keywordmaps at the price of a new config section
[keywordstyle].

As with cvs-like defaults they are turned off when manually
configured keywordmaps are detected (minimize risk of inadvertent
expansion, speed).

The first patch implements 2 additional date filters to obtain
the date formats needed.

If this is considered useful it would be nice if someone with
more svn experience could compare with
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html
Quick testing can be done with:
hg --config keywordstyle.svn=1 kwdemo --default

In this proposal switching to svn keywordstyle turns on the
alternate keywords:

LastChangedBy
LastChangedDate
LastChangedRevision

Turning these on could be done in an extra keywordstyle like
"svnfull". Personally I'd rather not for simplicity's sake.
With the additional datefilters in place it can be done manually
(as the functionality of the second patch could).

HeadURL/URL is not supported because I don't think it makes sense
within Mercurial. It still can be configured manually if a user
wishes to use that keyword.

c


More information about the Mercurial-devel mailing list