debug-discovery: do not abort on unrelated repositories stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 26 Jul 2022 10:39:27 +0200
branchstable
changeset 49403 ac4fda5d3ccd
parent 49402 236702592ff0
child 49404 c6aac50038bb
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.
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