author | Christian Ebert <blacktrash@gmx.net> |
Thu, 08 Feb 2007 14:40:20 +0100 | |
branch | kwmap-templates |
changeset 129 | 15e8cd7f5295 |
parent 128 | fe37939db543 |
child 131 | 23a1e1bdf62b |
permissions | -rw-r--r-- |
121 | 1 |
% help |
2 |
keyword extension - keyword expansion in local repositories |
|
3 |
||
4 |
This extension expands RCS/CVS-like or self-customized keywords in |
|
5 |
the text files selected by your configuration. |
|
6 |
||
7 |
Keywords are only expanded in local repositories and not logged by |
|
8 |
Mercurial internally. The mechanism can be regarded as a convenience |
|
9 |
for the current user and may be turned off anytime. |
|
128
fe37939db543
Remove spurious spaces at EOL
Christian Ebert <blacktrash@gmx.net>
parents:
121
diff
changeset
|
10 |
|
121 | 11 |
Substitution takes place on every commit and update of the working |
12 |
repository. |
|
13 |
||
14 |
Configuration is done in the [keyword] and [keywordmaps] sections of |
|
15 |
hgrc files. |
|
16 |
||
17 |
no commands defined |
|
18 |
% cat |
|
19 |
$Id$ |
|
20 |
$Id$ |
|
21 |
% default keyword expansion |
|
22 |
% commit |
|
23 |
adding a |
|
24 |
adding b |
|
25 |
a |
|
26 |
b |
|
27 |
overwriting a expanding keywords |
|
28 |
% cat |
|
29 |
$Id: a,v b803250b3164 1970/01/01 00:00:00 user $ |
|
30 |
$Id$ |
|
31 |
% hg cat |
|
32 |
$Id: a,v b803250b3164 1970/01/01 00:00:00 user $ |
|
33 |
$Id$ |
|
34 |
% update |
|
35 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
36 |
% cat |
|
37 |
$Id: a,v b803250b3164 1970/01/01 00:00:00 user $ |
|
38 |
$Id$ |
|
39 |
% custom keyword expansion |
|
40 |
% cat |
|
41 |
$Id: a,v b803250b3164 1970/01/01 00:00:00 user $ |
|
42 |
$Id$ |
|
43 |
% hg cat |
|
44 |
$Id: a b803250b3164 Thu, 01 Jan 1970 00:00:00 +0000 user $ |
|
45 |
$Id$ |
|
46 |
% commit |
|
47 |
a |
|
48 |
overwriting a expanding keywords |
|
49 |
% cat |
|
50 |
$Id: a 375046bad9d3 Thu, 01 Jan 1970 00:00:01 +0000 user $ |
|
51 |
$Xinfo: User Name <user@example.com>: firstline $ |
|
52 |
$Id$ |
|
53 |
% hg cat |
|
54 |
$Id: a 375046bad9d3 Thu, 01 Jan 1970 00:00:01 +0000 user $ |
|
55 |
$Xinfo: User Name <user@example.com>: firstline $ |
|
56 |
$Id$ |
|
57 |
% switch off expansion |
|
58 |
% cat |
|
59 |
$Id: a 375046bad9d3 Thu, 01 Jan 1970 00:00:01 +0000 user $ |
|
60 |
$Xinfo: User Name <user@example.com>: firstline $ |
|
61 |
$Id$ |
|
62 |
% hg cat |
|
63 |
$Id$ |
|
64 |
$Xinfo$ |
|
65 |
$Id$ |
|
66 |
% update |
|
67 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
68 |
% cat |
|
69 |
$Id$ |
|
70 |
$Xinfo$ |
|
71 |
$Id$ |