Skip to content
Snippets Groups Projects
Commit 6c1d3779 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

discovery: don't reimplement all()

Differential Revision: https://phab.mercurial-scm.org/D1993
parent 6e7fae8f
No related branches found
No related tags found
No related merge requests found
......@@ -53,5 +53,4 @@
return treediscovery.findcommonincoming(repo, remote, heads, force)
if heads:
allknown = True
knownnode = repo.changelog.hasnode # no nodemap until it is filtered
......@@ -57,9 +56,5 @@
knownnode = repo.changelog.hasnode # no nodemap until it is filtered
for h in heads:
if not knownnode(h):
allknown = False
break
if allknown:
if all(knownnode(h) for h in heads):
return (heads, False, heads)
res = setdiscovery.findcommonheads(repo.ui, repo, remote, heads,
......
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