Show More
@@ -1,502 +1,504 b'' | |||
|
1 | 1 | % help |
|
2 | 2 | keyword extension - expand keywords in tracked files |
|
3 | 3 | |
|
4 | 4 | This extension expands RCS/CVS-like or self-customized $Keywords$ in |
|
5 | 5 | tracked text files selected by your configuration. |
|
6 | 6 | |
|
7 | 7 | Keywords are only expanded in local repositories and not stored in the |
|
8 | 8 | change history. The mechanism can be regarded as a convenience for the |
|
9 | 9 | current user or for archive distribution. |
|
10 | 10 | |
|
11 | 11 | Configuration is done in the [keyword] and [keywordmaps] sections of |
|
12 | 12 | hgrc files. |
|
13 | 13 | |
|
14 | 14 | Example: |
|
15 | 15 | |
|
16 | 16 | [keyword] |
|
17 | 17 | # expand keywords in every python file except those matching "x*" |
|
18 | 18 | **.py = |
|
19 | 19 | x* = ignore |
|
20 | 20 | |
|
21 | 21 | Note: the more specific you are in your filename patterns |
|
22 | 22 | the less you lose speed in huge repositories. |
|
23 | 23 | |
|
24 | 24 | For [keywordmaps] template mapping and expansion demonstration and |
|
25 | 25 | control run "hg kwdemo". |
|
26 | 26 | |
|
27 | 27 | An additional date template filter {date|utcdate} is provided. |
|
28 | 28 | |
|
29 | 29 | The default template mappings (view with "hg kwdemo -d") can be |
|
30 | 30 | replaced with customized keywords and templates. Again, run "hg |
|
31 | 31 | kwdemo" to control the results of your config changes. |
|
32 | 32 | |
|
33 | 33 | Before changing/disabling active keywords, run "hg kwshrink" to avoid |
|
34 | 34 | the risk of inadvertently storing expanded keywords in the change |
|
35 | 35 | history. |
|
36 | 36 | |
|
37 | 37 | To force expansion after enabling it, or a configuration change, run |
|
38 | 38 | "hg kwexpand". |
|
39 | 39 | |
|
40 | 40 | Also, when committing with the record extension or using mq's qrecord, |
|
41 | 41 | be aware that keywords cannot be updated. Again, run "hg kwexpand" on |
|
42 | 42 | the files in question to update keyword expansions after all changes |
|
43 | 43 | have been checked in. |
|
44 | 44 | |
|
45 | 45 | Expansions spanning more than one line and incremental expansions, |
|
46 | 46 | like CVS' $Log$, are not supported. A keyword template map |
|
47 | 47 | "Log = {desc}" expands to the first line of the changeset description. |
|
48 | 48 | |
|
49 | 49 | list of commands: |
|
50 | 50 | |
|
51 | 51 | kwdemo print [keywordmaps] configuration and an expansion example |
|
52 | 52 | kwexpand expand keywords in the working directory |
|
53 | 53 | kwfiles show files configured for keyword expansion |
|
54 | 54 | kwshrink revert expanded keywords in the working directory |
|
55 | 55 | |
|
56 | 56 | enabled extensions: |
|
57 | 57 | |
|
58 | 58 | keyword expand keywords in tracked files |
|
59 | 59 | mq manage a stack of patches |
|
60 | 60 | notify hooks for sending email notifications at commit/push time |
|
61 | 61 | |
|
62 | 62 | use "hg -v help keyword" to show aliases and global options |
|
63 | 63 | % hg kwdemo |
|
64 | 64 | [extensions] |
|
65 | 65 | hgext.keyword = |
|
66 | 66 | [keyword] |
|
67 | 67 | * = |
|
68 | 68 | b = ignore |
|
69 | 69 | demo.txt = |
|
70 | 70 | [keywordmaps] |
|
71 | 71 | RCSFile = {file|basename},v |
|
72 | 72 | Author = {author|user} |
|
73 | 73 | Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
|
74 | 74 | Source = {root}/{file},v |
|
75 | 75 | Date = {date|utcdate} |
|
76 | 76 | Id = {file|basename},v {node|short} {date|utcdate} {author|user} |
|
77 | 77 | Revision = {node|short} |
|
78 | 78 | $RCSFile: demo.txt,v $ |
|
79 | 79 | $Author: test $ |
|
80 | 80 | $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
81 | 81 | $Source: /TMP/demo.txt,v $ |
|
82 | 82 | $Date: 2000/00/00 00:00:00 $ |
|
83 | 83 | $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $ |
|
84 | 84 | $Revision: xxxxxxxxxxxx $ |
|
85 | 85 | [extensions] |
|
86 | 86 | hgext.keyword = |
|
87 | 87 | [keyword] |
|
88 | 88 | * = |
|
89 | 89 | b = ignore |
|
90 | 90 | demo.txt = |
|
91 | 91 | [keywordmaps] |
|
92 | 92 | Branch = {branches} |
|
93 | 93 | $Branch: demobranch $ |
|
94 | 94 | % kwshrink should exit silently in empty/invalid repo |
|
95 | 95 | pulling from test-keyword.hg |
|
96 | 96 | requesting all changes |
|
97 | 97 | adding changesets |
|
98 | 98 | adding manifests |
|
99 | 99 | adding file changes |
|
100 | 100 | added 1 changesets with 1 changes to 1 files |
|
101 | 101 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
102 | 102 | % cat |
|
103 | 103 | expand $Id$ |
|
104 | 104 | do not process $Id: |
|
105 | 105 | xxx $ |
|
106 | 106 | ignore $Id$ |
|
107 | 107 | % addremove |
|
108 | 108 | adding a |
|
109 | 109 | adding b |
|
110 | 110 | % status |
|
111 | 111 | A a |
|
112 | 112 | A b |
|
113 | 113 | % default keyword expansion including commit hook |
|
114 | 114 | % interrupted commit should not change state or run commit hook |
|
115 | 115 | abort: empty commit message |
|
116 | 116 | % status |
|
117 | 117 | A a |
|
118 | 118 | A b |
|
119 | 119 | % commit |
|
120 | 120 | a |
|
121 | 121 | b |
|
122 | 122 | overwriting a expanding keywords |
|
123 | 123 | running hook commit.test: cp a hooktest |
|
124 | 124 | committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
125 | 125 | % status |
|
126 | 126 | ? hooktest |
|
127 | 127 | % identify |
|
128 | 128 | ef63ca68695b |
|
129 | 129 | % cat |
|
130 | 130 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
131 | 131 | do not process $Id: |
|
132 | 132 | xxx $ |
|
133 | 133 | ignore $Id$ |
|
134 | 134 | % hg cat |
|
135 | 135 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
136 | 136 | do not process $Id: |
|
137 | 137 | xxx $ |
|
138 | 138 | ignore $Id$ |
|
139 | 139 | a |
|
140 | 140 | % diff a hooktest |
|
141 | 141 | % removing commit hook from config |
|
142 | 142 | % bundle |
|
143 | 143 | 2 changesets found |
|
144 | 144 | % notify on pull to check whether keywords stay as is in email |
|
145 | 145 | % ie. if patch.diff wrapper acts as it should |
|
146 | 146 | % pull from bundle |
|
147 | 147 | pulling from ../kw.hg |
|
148 | 148 | requesting all changes |
|
149 | 149 | adding changesets |
|
150 | 150 | adding manifests |
|
151 | 151 | adding file changes |
|
152 | 152 | added 2 changesets with 3 changes to 3 files |
|
153 | 153 | |
|
154 | 154 | diff -r 000000000000 -r a2392c293916 sym |
|
155 | 155 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
156 | 156 | +++ b/sym Sat Feb 09 20:25:47 2008 +0100 |
|
157 | 157 | @@ -0,0 +1,1 @@ |
|
158 | 158 | +a |
|
159 | 159 | \ No newline at end of file |
|
160 | 160 | |
|
161 | 161 | diff -r a2392c293916 -r ef63ca68695b a |
|
162 | 162 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
163 | 163 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
164 | 164 | @@ -0,0 +1,3 @@ |
|
165 | 165 | +expand $Id$ |
|
166 | 166 | +do not process $Id: |
|
167 | 167 | +xxx $ |
|
168 | 168 | diff -r a2392c293916 -r ef63ca68695b b |
|
169 | 169 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
170 | 170 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
171 | 171 | @@ -0,0 +1,1 @@ |
|
172 | 172 | +ignore $Id$ |
|
173 | 173 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
174 | 174 | % remove notify config |
|
175 | 175 | % touch |
|
176 | 176 | % status |
|
177 | 177 | % update |
|
178 | 178 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
179 | 179 | % cat |
|
180 | 180 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
181 | 181 | do not process $Id: |
|
182 | 182 | xxx $ |
|
183 | 183 | ignore $Id$ |
|
184 | 184 | % check whether expansion is filewise |
|
185 | 185 | % commit c |
|
186 | 186 | adding c |
|
187 | 187 | % force expansion |
|
188 | 188 | overwriting a expanding keywords |
|
189 | 189 | overwriting c expanding keywords |
|
190 | 190 | % compare changenodes in a c |
|
191 | 191 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
192 | 192 | do not process $Id: |
|
193 | 193 | xxx $ |
|
194 | 194 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
195 | 195 | tests for different changenodes |
|
196 | 196 | % qinit -c |
|
197 | 197 | % qimport |
|
198 | 198 | % qcommit |
|
199 | 199 | % keywords should not be expanded in patch |
|
200 | 200 | # HG changeset patch |
|
201 | 201 | # User User Name <user@example.com> |
|
202 | 202 | # Date 1 0 |
|
203 | 203 | # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
|
204 | 204 | # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
|
205 | 205 | cndiff |
|
206 | 206 | |
|
207 | 207 | diff -r ef63ca68695b -r 40a904bbbe4c c |
|
208 | 208 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
209 | 209 | +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
|
210 | 210 | @@ -0,0 +1,2 @@ |
|
211 | 211 | +$Id$ |
|
212 | 212 | +tests for different changenodes |
|
213 | 213 | % qpop |
|
214 | 214 | patch queue now empty |
|
215 | 215 | % qgoto - should imply qpush |
|
216 | 216 | applying mqtest.diff |
|
217 | 217 | now at: mqtest.diff |
|
218 | 218 | % cat |
|
219 | 219 | $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
|
220 | 220 | tests for different changenodes |
|
221 | 221 | % qpop and move on |
|
222 | 222 | patch queue now empty |
|
223 | 223 | % copy |
|
224 | 224 | % kwfiles added |
|
225 | 225 | a |
|
226 | 226 | c |
|
227 | 227 | % commit |
|
228 | 228 | c |
|
229 | 229 | c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 |
|
230 | 230 | overwriting c expanding keywords |
|
231 | 231 | committed changeset 2:e22d299ac0c2bd8897b3df5114374b9e4d4ca62f |
|
232 | 232 | % cat a c |
|
233 | 233 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
234 | 234 | do not process $Id: |
|
235 | 235 | xxx $ |
|
236 | 236 | expand $Id: c,v e22d299ac0c2 1970/01/01 00:00:01 user $ |
|
237 | 237 | do not process $Id: |
|
238 | 238 | xxx $ |
|
239 | 239 | % touch copied c |
|
240 | 240 | % status |
|
241 | 241 | % kwfiles |
|
242 | 242 | a |
|
243 | 243 | c |
|
244 | 244 | % diff --rev |
|
245 | 245 | diff -r ef63ca68695b c |
|
246 | 246 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
247 | 247 | @@ -0,0 +1,3 @@ |
|
248 | 248 | +expand $Id$ |
|
249 | 249 | +do not process $Id: |
|
250 | 250 | +xxx $ |
|
251 | 251 | % rollback |
|
252 | 252 | rolling back last transaction |
|
253 | 253 | % status |
|
254 | 254 | A c |
|
255 | 255 | % update -C |
|
256 | 256 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
257 | 257 | % custom keyword expansion |
|
258 | 258 | % try with kwdemo |
|
259 | 259 | [extensions] |
|
260 | 260 | hgext.keyword = |
|
261 | 261 | [keyword] |
|
262 | 262 | * = |
|
263 | 263 | b = ignore |
|
264 | 264 | demo.txt = |
|
265 | 265 | [keywordmaps] |
|
266 | 266 | Xinfo = {author}: {desc} |
|
267 | 267 | $Xinfo: test: hg keyword config and expansion example $ |
|
268 | 268 | % cat |
|
269 | 269 | expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
|
270 | 270 | do not process $Id: |
|
271 | 271 | xxx $ |
|
272 | 272 | ignore $Id$ |
|
273 | 273 | % hg cat |
|
274 | 274 | expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ |
|
275 | 275 | do not process $Id: |
|
276 | 276 | xxx $ |
|
277 | 277 | ignore $Id$ |
|
278 | 278 | a |
|
279 | 279 | % interrupted commit should not change state |
|
280 | 280 | abort: empty commit message |
|
281 | 281 | % status |
|
282 | 282 | M a |
|
283 | 283 | ? c |
|
284 | 284 | ? log |
|
285 | 285 | % commit |
|
286 | 286 | a |
|
287 | 287 | overwriting a expanding keywords |
|
288 | 288 | committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
289 | 289 | % status |
|
290 | 290 | ? c |
|
291 | 291 | % verify |
|
292 | 292 | checking changesets |
|
293 | 293 | checking manifests |
|
294 | 294 | crosschecking files in changesets and manifests |
|
295 | 295 | checking files |
|
296 | 296 | 3 files, 3 changesets, 4 total revisions |
|
297 | 297 | % cat |
|
298 | 298 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
299 | 299 | do not process $Id: |
|
300 | 300 | xxx $ |
|
301 | 301 | $Xinfo: User Name <user@example.com>: firstline $ |
|
302 | 302 | ignore $Id$ |
|
303 | 303 | % hg cat |
|
304 | 304 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
305 | 305 | do not process $Id: |
|
306 | 306 | xxx $ |
|
307 | 307 | $Xinfo: User Name <user@example.com>: firstline $ |
|
308 | 308 | ignore $Id$ |
|
309 | 309 | a |
|
310 | 310 | % annotate |
|
311 | 311 | 1: expand $Id$ |
|
312 | 312 | 1: do not process $Id: |
|
313 | 313 | 1: xxx $ |
|
314 | 314 | 2: $Xinfo$ |
|
315 | 315 | % remove |
|
316 | 316 | committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 |
|
317 | 317 | % status |
|
318 | 318 | ? c |
|
319 | 319 | % rollback |
|
320 | 320 | rolling back last transaction |
|
321 | 321 | % status |
|
322 | 322 | R a |
|
323 | 323 | ? c |
|
324 | 324 | % revert a |
|
325 | 325 | % cat a |
|
326 | 326 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
327 | 327 | do not process $Id: |
|
328 | 328 | xxx $ |
|
329 | 329 | $Xinfo: User Name <user@example.com>: firstline $ |
|
330 | 330 | % clone to test incoming |
|
331 | 331 | requesting all changes |
|
332 | 332 | adding changesets |
|
333 | 333 | adding manifests |
|
334 | 334 | adding file changes |
|
335 | 335 | added 2 changesets with 3 changes to 3 files |
|
336 | 336 | updating working directory |
|
337 | 337 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
338 | 338 | % incoming |
|
339 | 339 | comparing with test-keyword/Test |
|
340 | 340 | searching for changes |
|
341 | 341 | changeset: 2:bb948857c743 |
|
342 | 342 | tag: tip |
|
343 | 343 | user: User Name <user@example.com> |
|
344 | 344 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
345 | 345 | summary: firstline |
|
346 | 346 | |
|
347 | 347 | % commit rejecttest |
|
348 | 348 | a |
|
349 | 349 | overwriting a expanding keywords |
|
350 | 350 | committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 |
|
351 | 351 | % export |
|
352 | 352 | % import |
|
353 | 353 | applying ../rejecttest.diff |
|
354 | 354 | % cat |
|
355 | 355 | expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest |
|
356 | 356 | do not process $Id: rejecttest |
|
357 | 357 | xxx $ |
|
358 | 358 | $Xinfo: User Name <user@example.com>: rejects? $ |
|
359 | 359 | ignore $Id$ |
|
360 | 360 | |
|
361 | 361 | % rollback |
|
362 | 362 | rolling back last transaction |
|
363 | 363 | % clean update |
|
364 | 364 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
365 | 365 | % kwexpand/kwshrink on selected files |
|
366 | 366 | % copy a x/a |
|
367 | 367 | % kwexpand a |
|
368 | 368 | overwriting a expanding keywords |
|
369 | 369 | % kwexpand x/a should abort |
|
370 | 370 | abort: outstanding uncommitted changes |
|
371 | 371 | x/a |
|
372 | 372 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
|
373 | 373 | overwriting x/a expanding keywords |
|
374 | 374 | committed changeset 3:cfa68229c1167443337266ebac453c73b1d5d16e |
|
375 | 375 | % cat a |
|
376 | 376 | expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
|
377 | 377 | do not process $Id: |
|
378 | 378 | xxx $ |
|
379 | 379 | $Xinfo: User Name <user@example.com>: xa $ |
|
380 | 380 | % kwshrink a inside directory x |
|
381 | 381 | overwriting x/a shrinking keywords |
|
382 | 382 | % cat a |
|
383 | 383 | expand $Id$ |
|
384 | 384 | do not process $Id: |
|
385 | 385 | xxx $ |
|
386 | 386 | $Xinfo$ |
|
387 | 387 | % kwexpand nonexistent |
|
388 | 388 | nonexistent: |
|
389 | 389 | % hg serve |
|
390 | 390 | % expansion |
|
391 | 391 | % hgweb file |
|
392 | 392 | 200 Script output follows |
|
393 | 393 | |
|
394 | 394 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
395 | 395 | do not process $Id: |
|
396 | 396 | xxx $ |
|
397 | 397 | $Xinfo: User Name <user@example.com>: firstline $ |
|
398 | 398 | % no expansion |
|
399 | 399 | % hgweb annotate |
|
400 | 400 | 200 Script output follows |
|
401 | 401 | |
|
402 | 402 | |
|
403 | 403 | user@1: expand $Id$ |
|
404 | 404 | user@1: do not process $Id: |
|
405 | 405 | user@1: xxx $ |
|
406 | 406 | user@2: $Xinfo$ |
|
407 | 407 | |
|
408 | 408 | |
|
409 | 409 | |
|
410 | 410 | |
|
411 | 411 | % hgweb changeset |
|
412 | 412 | 200 Script output follows |
|
413 | 413 | |
|
414 | 414 | |
|
415 | 415 | # HG changeset patch |
|
416 | 416 | # User User Name <user@example.com> |
|
417 | 417 | # Date 3 0 |
|
418 | 418 | # Node ID cfa68229c1167443337266ebac453c73b1d5d16e |
|
419 | 419 | # Parent bb948857c743469b22bbf51f7ec8112279ca5d83 |
|
420 | 420 | xa |
|
421 | 421 | |
|
422 | diff -r bb948857c743 -r cfa68229c116 x/a | |
|
422 | 423 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
423 | 424 | +++ b/x/a Thu Jan 01 00:00:03 1970 +0000 |
|
424 | 425 | @@ -0,0 +1,4 @@ |
|
425 | 426 | +expand $Id$ |
|
426 | 427 | +do not process $Id: |
|
427 | 428 | +xxx $ |
|
428 | 429 | +$Xinfo$ |
|
429 | 430 | |
|
430 | 431 | % hgweb filediff |
|
431 | 432 | 200 Script output follows |
|
432 | 433 | |
|
433 | 434 | |
|
435 | diff -r ef63ca68695b -r bb948857c743 a | |
|
434 | 436 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
435 | 437 | +++ b/a Thu Jan 01 00:00:02 1970 +0000 |
|
436 | 438 | @@ -1,3 +1,4 @@ |
|
437 | 439 | expand $Id$ |
|
438 | 440 | do not process $Id: |
|
439 | 441 | xxx $ |
|
440 | 442 | +$Xinfo$ |
|
441 | 443 | |
|
442 | 444 | |
|
443 | 445 | |
|
444 | 446 | |
|
445 | 447 | % errors encountered |
|
446 | 448 | % merge/resolve |
|
447 | 449 | % simplemerge |
|
448 | 450 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
449 | 451 | created new head |
|
450 | 452 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
451 | 453 | (branch merge, don't forget to commit) |
|
452 | 454 | $Id: m 8731e1dadc99 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
453 | 455 | foo |
|
454 | 456 | % conflict |
|
455 | 457 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
456 | 458 | created new head |
|
457 | 459 | merging m |
|
458 | 460 | warning: conflicts during merge. |
|
459 | 461 | merging m failed! |
|
460 | 462 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
461 | 463 | use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon |
|
462 | 464 | % keyword stays outside conflict zone |
|
463 | 465 | $Id$ |
|
464 | 466 | <<<<<<< local |
|
465 | 467 | bar |
|
466 | 468 | ======= |
|
467 | 469 | foo |
|
468 | 470 | >>>>>>> other |
|
469 | 471 | % resolve to local |
|
470 | 472 | $Id: m 43dfd2854b5b Thu, 01 Jan 1970 00:00:00 +0000 test $ |
|
471 | 473 | bar |
|
472 | 474 | % switch off expansion |
|
473 | 475 | % kwshrink with unknown file u |
|
474 | 476 | overwriting a shrinking keywords |
|
475 | 477 | overwriting m shrinking keywords |
|
476 | 478 | overwriting x/a shrinking keywords |
|
477 | 479 | % cat |
|
478 | 480 | expand $Id$ |
|
479 | 481 | do not process $Id: |
|
480 | 482 | xxx $ |
|
481 | 483 | $Xinfo$ |
|
482 | 484 | ignore $Id$ |
|
483 | 485 | % hg cat |
|
484 | 486 | expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
|
485 | 487 | do not process $Id: |
|
486 | 488 | xxx $ |
|
487 | 489 | $Xinfo: User Name <user@example.com>: firstline $ |
|
488 | 490 | ignore $Id$ |
|
489 | 491 | a |
|
490 | 492 | % cat |
|
491 | 493 | expand $Id$ |
|
492 | 494 | do not process $Id: |
|
493 | 495 | xxx $ |
|
494 | 496 | $Xinfo$ |
|
495 | 497 | ignore $Id$ |
|
496 | 498 | % hg cat |
|
497 | 499 | expand $Id$ |
|
498 | 500 | do not process $Id: |
|
499 | 501 | xxx $ |
|
500 | 502 | $Xinfo$ |
|
501 | 503 | ignore $Id$ |
|
502 | 504 | a |
General Comments 0
You need to be logged in to leave comments.
Login now