equal
deleted
inserted
replaced
34 kwshrink revert expanded keywords in working directory |
34 kwshrink revert expanded keywords in working directory |
35 % hg kwdemo |
35 % hg kwdemo |
36 [extensions] |
36 [extensions] |
37 hgext.keyword = |
37 hgext.keyword = |
38 [keyword] |
38 [keyword] |
39 demo.txt = |
39 * = |
|
40 b = ignore |
|
41 demo.txt = |
40 [keywordmaps] |
42 [keywordmaps] |
41 RCSFile = {file|basename},v |
43 RCSFile = {file|basename},v |
42 Author = {author|user} |
44 Author = {author|user} |
43 Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
45 Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
44 Source = {root}/{file},v |
46 Source = {root}/{file},v |
50 $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
52 $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
51 $Source: /TMP/demo.txt,v $ |
53 $Source: /TMP/demo.txt,v $ |
52 $Date: 2000/00/00 00:00:00 $ |
54 $Date: 2000/00/00 00:00:00 $ |
53 $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
55 $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
54 $Revision: xxxxxxxxxxxx $ |
56 $Revision: xxxxxxxxxxxx $ |
|
57 [extensions] |
|
58 hgext.keyword = |
|
59 [keyword] |
|
60 * = |
|
61 b = ignore |
|
62 demo.txt = |
|
63 [keywordmaps] |
|
64 Branch = {branches} |
|
65 $Branch: demobranch $ |
55 % kwshrink should abort in empty/invalid repo |
66 % kwshrink should abort in empty/invalid repo |
56 abort: no revision checked out! |
67 abort: no revision checked out! |
57 % cat |
68 % cat |
58 expand $Id$ |
69 expand $Id$ |
59 ignore $Id$ |
70 ignore $Id$ |
99 % custom keyword expansion |
110 % custom keyword expansion |
100 % try with kwdemo |
111 % try with kwdemo |
101 [extensions] |
112 [extensions] |
102 hgext.keyword = |
113 hgext.keyword = |
103 [keyword] |
114 [keyword] |
104 demo.txt = |
115 * = |
|
116 b = ignore |
|
117 demo.txt = |
105 [keywordmaps] |
118 [keywordmaps] |
106 Xinfo = {author}: {desc} |
119 Xinfo = {author}: {desc} |
107 $Xinfo: test: hg keyword config and expansion example $ |
120 $Xinfo: test: hg keyword config and expansion example $ |
108 % cat |
121 % cat |
109 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $ |
122 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $ |