--- a/mercurial/branchmap.py Mon Jan 06 01:27:42 2025 -0500
+++ b/mercurial/branchmap.py Mon Jan 06 01:33:08 2025 -0500
@@ -915,7 +915,7 @@
if self._pure_topo_branch is None:
# we match using node because it is faster to built the set of node
# than to resolve node → rev later.
- topo_heads = set(to_node(r) for r in self._get_topo_heads(repo))
+ topo_heads = {to_node(r) for r in self._get_topo_heads(repo)}
for label, nodes in sorted(self._entries.items()):
if label == self._pure_topo_branch:
# not need to write anything the header took care of that