hgkw/keyword.py
branchstable
changeset 761 81d8da31c542
parent 759 8cab71dc5725
child 763 9b4e36da5ffb
equal deleted inserted replaced
760:6d948926515b 761:81d8da31c542
   354     ui.write('[extensions]\nkeyword =\n')
   354     ui.write('[extensions]\nkeyword =\n')
   355     demoitems('keyword', ui.configitems('keyword'))
   355     demoitems('keyword', ui.configitems('keyword'))
   356     demoitems('keywordmaps', kwmaps.iteritems())
   356     demoitems('keywordmaps', kwmaps.iteritems())
   357     keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n'
   357     keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n'
   358     repo.wopener(fn, 'w').write(keywords)
   358     repo.wopener(fn, 'w').write(keywords)
   359     repo.add([fn])
   359     repo[None].add([fn])
   360     ui.note(_('\nkeywords written to %s:\n') % fn)
   360     ui.note(_('\nkeywords written to %s:\n') % fn)
   361     ui.note(keywords)
   361     ui.note(keywords)
   362     repo.dirstate.setbranch('demobranch')
   362     repo.dirstate.setbranch('demobranch')
   363     for name, cmd in ui.configitems('hooks'):
   363     for name, cmd in ui.configitems('hooks'):
   364         if name.split('.', 1)[0].find('commit') > -1:
   364         if name.split('.', 1)[0].find('commit') > -1: