##// END OF EJS Templates
discovery: don't reimplement all()...
Martin von Zweigbergk -
r35897:6c1d3779 default
parent child Browse files
Show More
@@ -53,13 +53,8 b' def findcommonincoming(repo, remote, hea'
53 return treediscovery.findcommonincoming(repo, remote, heads, force)
53 return treediscovery.findcommonincoming(repo, remote, heads, force)
54
54
55 if heads:
55 if heads:
56 allknown = True
57 knownnode = repo.changelog.hasnode # no nodemap until it is filtered
56 knownnode = repo.changelog.hasnode # no nodemap until it is filtered
58 for h in heads:
57 if all(knownnode(h) for h in heads):
59 if not knownnode(h):
60 allknown = False
61 break
62 if allknown:
63 return (heads, False, heads)
58 return (heads, False, heads)
64
59
65 res = setdiscovery.findcommonheads(repo.ui, repo, remote, heads,
60 res = setdiscovery.findcommonheads(repo.ui, repo, remote, heads,
General Comments 0
You need to be logged in to leave comments. Login now