diff -r c05ac059749f -r 0c40d2d151cb mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Jul 02 02:46:15 2020 +0200 +++ b/mercurial/cmdutil.py Thu Jul 02 02:51:09 2020 +0200 @@ -3438,7 +3438,7 @@ and bheads and node not in bheads and not any( - x.node() in bheads and x.branch() == branch for x in parents + p.node() in bheads and p.branch() == branch for p in parents ) ): repo.ui.status(_(b'created new head\n'))