diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -1502,7 +1502,9 @@ def commitnode(repo, editor, extra, user text=commitmsg, user=user, date=date, extra=extra, editor=editor ) - repo.dirstate.setbranch(repo[newnode].branch()) + repo.dirstate.setbranch( + repo[newnode].branch(), repo.currenttransaction() + ) return newnode