Show More
@@ -322,11 +322,7 b' def demo(ui, repo, *args, **opts):' | |||||
322 |
|
322 | |||
323 | uisetup(ui) |
|
323 | uisetup(ui) | |
324 | reposetup(ui, repo) |
|
324 | reposetup(ui, repo) | |
325 | for k, v in ui.configitems('extensions'): |
|
325 | ui.write('[extensions]\nkeyword =\n') | |
326 | if k.endswith('keyword'): |
|
|||
327 | extension = '%s = %s' % (k, v) |
|
|||
328 | break |
|
|||
329 | ui.write('[extensions]\n%s\n' % extension) |
|
|||
330 | demoitems('keyword', ui.configitems('keyword')) |
|
326 | demoitems('keyword', ui.configitems('keyword')) | |
331 | demoitems('keywordmaps', kwmaps.iteritems()) |
|
327 | demoitems('keywordmaps', kwmaps.iteritems()) | |
332 | keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n' |
|
328 | keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n' |
@@ -1,6 +1,6 b'' | |||||
1 | % hg kwdemo |
|
1 | % hg kwdemo | |
2 | [extensions] |
|
2 | [extensions] | |
3 |
keyword = |
|
3 | keyword = | |
4 | [keyword] |
|
4 | [keyword] | |
5 | demo.txt = |
|
5 | demo.txt = | |
6 | [keywordmaps] |
|
6 | [keywordmaps] | |
@@ -21,7 +21,7 b' Source = {root}/{file},v' | |||||
21 | $Revision: xxxxxxxxxxxx $ |
|
21 | $Revision: xxxxxxxxxxxx $ | |
22 | $Source: /TMP/demo.txt,v $ |
|
22 | $Source: /TMP/demo.txt,v $ | |
23 | [extensions] |
|
23 | [extensions] | |
24 |
keyword = |
|
24 | keyword = | |
25 | [keyword] |
|
25 | [keyword] | |
26 | demo.txt = |
|
26 | demo.txt = | |
27 | [keywordmaps] |
|
27 | [keywordmaps] | |
@@ -206,7 +206,7 b' 0 files updated, 0 files merged, 0 files' | |||||
206 | % custom keyword expansion |
|
206 | % custom keyword expansion | |
207 | % try with kwdemo |
|
207 | % try with kwdemo | |
208 | [extensions] |
|
208 | [extensions] | |
209 |
keyword = |
|
209 | keyword = | |
210 | [keyword] |
|
210 | [keyword] | |
211 | * = |
|
211 | * = | |
212 | b = ignore |
|
212 | b = ignore |
General Comments 0
You need to be logged in to leave comments.
Login now