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.
--- 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