diff mercurial/utils/storageutil.py @ 52676:f066fc0bdc7a

pyupgrade: use set literals where possible This was rewritten by the `set_literals` fixer in `pyupgrade`. I thought there was a past change around using set literals, but I can't find it now.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:33:08 -0500
parents f4733654f144
children
line wrap: on
line diff
--- a/mercurial/utils/storageutil.py	Mon Jan 06 01:27:42 2025 -0500
+++ b/mercurial/utils/storageutil.py	Mon Jan 06 01:33:08 2025 -0500
@@ -399,7 +399,7 @@
     emitted = set()
     available = set()
     if assumehaveparentrevisions:
-        common_heads = set(p for r in revs for p in parents(r))
+        common_heads = {p for r in revs for p in parents(r)}
         common_heads.difference_update(revs)
         available = store.ancestors(common_heads, inclusive=True)