hgkw/keyword.py
branchstable
changeset 929 9bed13113742
parent 901 3d47747bf5b3
child 938 9e55adfb3a21
equal deleted inserted replaced
928:e1bf64aaef4f 929:9bed13113742
   411     ui.write('[extensions]\nkeyword =\n')
   411     ui.write('[extensions]\nkeyword =\n')
   412     demoitems('keyword', ui.configitems('keyword'))
   412     demoitems('keyword', ui.configitems('keyword'))
   413     demoitems('keywordset', ui.configitems('keywordset'))
   413     demoitems('keywordset', ui.configitems('keywordset'))
   414     demoitems('keywordmaps', kwmaps.iteritems())
   414     demoitems('keywordmaps', kwmaps.iteritems())
   415     keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n'
   415     keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n'
   416     repo.wopener(fn, 'w').write(keywords)
   416     repo.wopener.write(fn, keywords)
   417     repo[None].add([fn])
   417     repo[None].add([fn])
   418     ui.note(_('\nkeywords written to %s:\n') % fn)
   418     ui.note(_('\nkeywords written to %s:\n') % fn)
   419     ui.note(keywords)
   419     ui.note(keywords)
   420     repo.dirstate.setbranch('demobranch')
   420     repo.dirstate.setbranch('demobranch')
   421     for name, cmd in ui.configitems('hooks'):
   421     for name, cmd in ui.configitems('hooks'):