Show More
@@ -531,10 +531,10 b' def demo(ui, repo, *args, **opts):' | |||||
531 | demoitems(b'keywordmaps', kwmaps.items()) |
|
531 | demoitems(b'keywordmaps', kwmaps.items()) | |
532 | keywords = b'$' + b'$\n$'.join(sorted(kwmaps.keys())) + b'$\n' |
|
532 | keywords = b'$' + b'$\n$'.join(sorted(kwmaps.keys())) + b'$\n' | |
533 | repo.wvfs.write(fn, keywords) |
|
533 | repo.wvfs.write(fn, keywords) | |
|
534 | with repo.wlock(): | |||
534 | repo[None].add([fn]) |
|
535 | repo[None].add([fn]) | |
535 | ui.note(_(b'\nkeywords written to %s:\n') % fn) |
|
536 | ui.note(_(b'\nkeywords written to %s:\n') % fn) | |
536 | ui.note(keywords) |
|
537 | ui.note(keywords) | |
537 | with repo.wlock(): |
|
|||
538 | repo.dirstate.setbranch(b'demobranch') |
|
538 | repo.dirstate.setbranch(b'demobranch') | |
539 | for name, cmd in ui.configitems(b'hooks'): |
|
539 | for name, cmd in ui.configitems(b'hooks'): | |
540 | if name.split(b'.', 1)[0].find(b'commit') > -1: |
|
540 | if name.split(b'.', 1)[0].find(b'commit') > -1: |
General Comments 0
You need to be logged in to leave comments.
Login now