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