Skip to content
Snippets Groups Projects
Commit dba35935 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

branch: pass current transaction when writing branch in keyword

parent a301f0fa
No related branches found
No related tags found
3 merge requests!485branching: merge default into stable,!483cleanup branch hack in the transaction.,!482write branch in the transaction when applicable
......@@ -535,7 +535,7 @@
repo[None].add([fn])
ui.note(_(b'\nkeywords written to %s:\n') % fn)
ui.note(keywords)
repo.dirstate.setbranch(b'demobranch')
repo.dirstate.setbranch(b'demobranch', repo.currenttransaction())
for name, cmd in ui.configitems(b'hooks'):
if name.split(b'.', 1)[0].find(b'commit') > -1:
repo.ui.setconfig(b'hooks', name, b'', b'keyword')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment