##// END OF EJS Templates
branch: pass current transaction when writing branch in keyword
marmoute -
r51153:dba35935 default
parent child Browse files
Show More
@@ -535,7 +535,7 b' def demo(ui, repo, *args, **opts):'
535 repo[None].add([fn])
535 repo[None].add([fn])
536 ui.note(_(b'\nkeywords written to %s:\n') % fn)
536 ui.note(_(b'\nkeywords written to %s:\n') % fn)
537 ui.note(keywords)
537 ui.note(keywords)
538 repo.dirstate.setbranch(b'demobranch')
538 repo.dirstate.setbranch(b'demobranch', repo.currenttransaction())
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:
541 repo.ui.setconfig(b'hooks', name, b'', b'keyword')
541 repo.ui.setconfig(b'hooks', name, b'', b'keyword')
General Comments 0
You need to be logged in to leave comments. Login now