# HG changeset patch # User Pierre-Yves David # Date 2023-03-02 13:44:17 # Node ID a301f0fad0467be93b059789d416e19b1f5cdf0b # Parent a6e0b7d4ae9dcf0516d62258ddc0ba84dab641df branch: pass current transaction when writing branch in histedit diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -581,7 +581,7 @@ class histeditaction: with repo.ui.silent(): hg.update(repo, self.state.parentctxnode, quietempty=True) stats = applychanges(repo.ui, repo, rulectx, {}) - repo.dirstate.setbranch(rulectx.branch()) + repo.dirstate.setbranch(rulectx.branch(), repo.currenttransaction()) if stats.unresolvedcount: raise error.InterventionRequired( _(b'Fix up the change (%s %s)') % (self.verb, short(self.node)),