mercurial/graphmod.py
changeset 44452 9d2b2df2c2ba
parent 43776 faa8a59f4a06
child 48875 6000f5b25c9b
--- a/mercurial/graphmod.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/graphmod.py	Fri Mar 06 13:27:41 2020 -0500
@@ -58,7 +58,7 @@
         # partition into parents in the rev set and missing parents, then
         # augment the lists with markers, to inform graph drawing code about
         # what kind of edge to draw between nodes.
-        pset = set(p.rev() for p in ctx.parents() if p.rev() in revs)
+        pset = {p.rev() for p in ctx.parents() if p.rev() in revs}
         mpars = [
             p.rev()
             for p in ctx.parents()
@@ -95,9 +95,9 @@
     include = set(nodes)
     for node in nodes:
         ctx = repo[node]
-        parents = set(
+        parents = {
             (PARENT, p.rev()) for p in ctx.parents() if p.node() in include
-        )
+        }
         yield (ctx.rev(), CHANGESET, ctx, sorted(parents))