Skip to content
Snippets Groups Projects
Commit 5a14f48d authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

discovery: ensure that missingheads are always heads of everything we tried

This only alter the third block executed when:
    * repo have secret changeset
    * onlyheads is not None

In other case findcommonoutgoing already had this behavior
parent b345f851
No related branches found
No related tags found
No related merge requests found
......@@ -124,8 +124,7 @@
missing.append(node)
if excluded:
# update missing heads
rset = repo.set('heads(%ln)', missing)
missingheads = [ctx.node() for ctx in rset]
missingheads = phases.newheads(repo, onlyheads, excluded)
else:
missingheads = onlyheads
og.missingheads = missingheads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment