--- a/mercurial/discovery.py Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/discovery.py Fri Mar 06 13:27:41 2020 -0500
@@ -188,7 +188,7 @@
# ancestors of missing
og._computecommonmissing()
cl = repo.changelog
- missingrevs = set(cl.rev(n) for n in og._missing)
+ missingrevs = {cl.rev(n) for n in og._missing}
og._common = set(cl.ancestors(missingrevs)) - missingrevs
commonheads = set(og.commonheads)
og.missingheads = [h for h in og.missingheads if h not in commonheads]
@@ -264,8 +264,8 @@
# If there are no obsstore, no post processing are needed.
if repo.obsstore:
torev = repo.changelog.rev
- futureheads = set(torev(h) for h in outgoing.missingheads)
- futureheads |= set(torev(h) for h in outgoing.commonheads)
+ futureheads = {torev(h) for h in outgoing.missingheads}
+ futureheads |= {torev(h) for h in outgoing.commonheads}
allfuturecommon = repo.changelog.ancestors(futureheads, inclusive=True)
for branch, heads in sorted(pycompat.iteritems(headssum)):
remoteheads, newheads, unsyncedheads, placeholder = heads