mercurial/changegroup.py
changeset 44452 9d2b2df2c2ba
parent 44306 a0ec05d93c8e
child 45144 c93dd9d9f1e6
--- a/mercurial/changegroup.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/changegroup.py	Fri Mar 06 13:27:41 2020 -0500
@@ -993,7 +993,7 @@
             ]
 
         manifests.clear()
-        clrevs = set(cl.rev(x) for x in clnodes)
+        clrevs = {cl.rev(x) for x in clnodes}
 
         it = self.generatefiles(
             changedfiles,
@@ -1282,9 +1282,7 @@
                 flinkrev = store.linkrev
                 fnode = store.node
                 revs = ((r, flinkrev(r)) for r in store)
-                return dict(
-                    (fnode(r), cln(lr)) for r, lr in revs if lr in clrevs
-                )
+                return {fnode(r): cln(lr) for r, lr in revs if lr in clrevs}
 
         clrevtolocalrev = {}