Differences between revisions 5 and 6
Revision 5 as of 2007-01-17 23:33:38
Size: 1327
Comment:
Revision 6 as of 2007-01-20 15:16:04
Size: 1404
Comment: update link, fix some typos
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Download site: [http://www.blacktrash.org/cgi-bin/hgwebdir.cgi/hgkeyword/ keyword expansion repository]. Download site: [http://www.blacktrash.org/cgi-bin/mercurial/hgkeyword/ keyword expansion repository].
Line 22: Line 22:
Additional configuration is dones in they [keyword] and [keywordmaps] sections in your configuration file: Additional configuration is done in the [keyword] and [keywordmaps] sections in your configuration file:
Line 31: Line 31:
# using {{{key-to-be-expanded = value}}} lines, where values are taken from the avaliable Mercurial template names. # using "key-to-be-expanded = value" lines, where values are taken from the available Mercurial template names.
# an additional filter "utcdate" is provided to get "%Y/%m/%d %H:%M:%S" date format.

Keyword Expansion extension

This extension is not being distributed along with Mercurial.

"Author: Christian Ebert"

Download site: [http://www.blacktrash.org/cgi-bin/mercurial/hgkeyword/ keyword expansion repository].

Overview

This extension allows the expansion of RCS/CVS-like and user defined keys in Mercurial repositories.

Configuration

To enable this extension add it to the '[extensions]' stanza in the hgrc file:

[extensions]
hgext.keyword=
#or, if keyword.py is in not the hgext folder:
#keyword=/path/to/keyword.py

Additional configuration is done in the [keyword] and [keywordmaps] sections in your configuration file:

# filename patterns for expansion are configured in this section
# files matching patterns with value 'ignore' are ignored
[keyword]
**.py =
x* = ignore
...
# in case you prefer your own keyword maps over the cvs-like defaults:
# using "key-to-be-expanded = value" lines, where values are taken from the available Mercurial template names.
# an additional filter "utcdate" is provided to get "%Y/%m/%d %H:%M:%S" date format.
[keywordmaps]
HGdate = {date|rfc822date}
lastlog = {desc} ## same as {desc|firstline} in this context
checked in by = {author}

Usage

The defined keys (or default ones) are automatically expanded, without user interaction.


CategoryExtension

KeywordExtension (last edited 2024-03-06 12:11:11 by ChristianEbert)