Show More
@@ -444,11 +444,8 b' def demo(ui, repo, *args, **opts):' | |||||
444 | repo[None].add([fn]) |
|
444 | repo[None].add([fn]) | |
445 | ui.note(_('\nkeywords written to %s:\n') % fn) |
|
445 | ui.note(_('\nkeywords written to %s:\n') % fn) | |
446 | ui.note(keywords) |
|
446 | ui.note(keywords) | |
447 |
w |
|
447 | with repo.wlock(): | |
448 | try: |
|
|||
449 | repo.dirstate.setbranch('demobranch') |
|
448 | repo.dirstate.setbranch('demobranch') | |
450 | finally: |
|
|||
451 | wlock.release() |
|
|||
452 | for name, cmd in ui.configitems('hooks'): |
|
449 | for name, cmd in ui.configitems('hooks'): | |
453 | if name.split('.', 1)[0].find('commit') > -1: |
|
450 | if name.split('.', 1)[0].find('commit') > -1: | |
454 | repo.ui.setconfig('hooks', name, '', 'keyword') |
|
451 | repo.ui.setconfig('hooks', name, '', 'keyword') |
General Comments 0
You need to be logged in to leave comments.
Login now