diff -r 236702592ff0 -r ac4fda5d3ccd mercurial/debugcommands.py --- a/mercurial/debugcommands.py Tue Jul 26 10:34:20 2022 +0200 +++ b/mercurial/debugcommands.py Tue Jul 26 10:39:27 2022 +0200 @@ -1302,7 +1302,12 @@ revs = logcmdutil.revrange(repo, pushedrevs) nodes = [repo[r].node() for r in revs] common, any, hds = setdiscovery.findcommonheads( - ui, repo, remote, ancestorsof=nodes, audit=data + ui, + repo, + remote, + ancestorsof=nodes, + audit=data, + abortwhenunrelated=False, ) return common, hds