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