equal
deleted
inserted
replaced
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: |