# HG changeset patch # User Christian Ebert # Date 1268774956 -3600 # Node ID 2f341cf2268dfbdf1139c5abe9da612bba3aa08a # Parent 5f71db3fe3b51962e0a34760613a6d213ebce2c2 Do not bother about detecting extension path in demo Detecting and showing the path to a keyword extension in a non-standard place only made sense while keyword.py was not shipped with Mercurial. The test output has changed because we do not have a spurious space at eol anymore. diff -r 5f71db3fe3b5 -r 2f341cf2268d hgkw/keyword.py --- a/hgkw/keyword.py Mon Apr 12 14:12:56 2010 +0200 +++ b/hgkw/keyword.py Tue Mar 16 22:29:16 2010 +0100 @@ -322,11 +322,7 @@ uisetup(ui) reposetup(ui, repo) - for k, v in ui.configitems('extensions'): - if k.endswith('keyword'): - extension = '%s = %s' % (k, v) - break - ui.write('[extensions]\n%s\n' % extension) + ui.write('[extensions]\nkeyword =\n') demoitems('keyword', ui.configitems('keyword')) demoitems('keywordmaps', kwmaps.iteritems()) keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n' diff -r 5f71db3fe3b5 -r 2f341cf2268d tests/test-keyword.out --- a/tests/test-keyword.out Mon Apr 12 14:12:56 2010 +0200 +++ b/tests/test-keyword.out Tue Mar 16 22:29:16 2010 +0100 @@ -1,6 +1,6 @@ % hg kwdemo [extensions] -keyword = +keyword = [keyword] demo.txt = [keywordmaps] @@ -21,7 +21,7 @@ $Revision: xxxxxxxxxxxx $ $Source: /TMP/demo.txt,v $ [extensions] -keyword = +keyword = [keyword] demo.txt = [keywordmaps] @@ -206,7 +206,7 @@ % custom keyword expansion % try with kwdemo [extensions] -keyword = +keyword = [keyword] * = b = ignore