# HG changeset patch # User Pierre-Yves David # Date 2022-07-26 08:39:27 # Node ID ac4fda5d3ccda98ecc01de805bd4753ad08df8ee # Parent 236702592ff03884ec8e5ae5d3bdf21017e0cffe debug-discovery: do not abort on unrelated repositories This is a useful case to consider, so we should not abort in this case. A warning is still issued. 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