Mercurial > hg-stable
changeset 50258:dba3593555e5
branch: pass current transaction when writing branch in keyword
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 02 Mar 2023 14:44:26 +0100 |
parents | a301f0fad046 |
children | a44e489940e0 |
files | hgext/keyword.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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')