# HG changeset patch # User Pierre-Yves David # Date 1677764666 -3600 # Node ID dba3593555e5975dc0a22ed9d943b03912466f54 # Parent a301f0fad0467be93b059789d416e19b1f5cdf0b branch: pass current transaction when writing branch in keyword diff -r a301f0fad046 -r dba3593555e5 hgext/keyword.py --- a/hgext/keyword.py Thu Mar 02 14:44:17 2023 +0100 +++ b/hgext/keyword.py Thu Mar 02 14:44:26 2023 +0100 @@ -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')