diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1302,7 +1302,12 @@ def debugdiscovery(ui, repo, remoteurl=b 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