hgext/closehead.py
changeset 44452 9d2b2df2c2ba
parent 43077 687b865b95ad
child 48116 5ced12cfa41b
--- a/hgext/closehead.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/hgext/closehead.py	Fri Mar 06 13:27:41 2020 -0500
@@ -76,7 +76,7 @@
     heads = []
     for branch in repo.branchmap():
         heads.extend(repo.branchheads(branch))
-    heads = set(repo[h].rev() for h in heads)
+    heads = {repo[h].rev() for h in heads}
     for rev in revs:
         if rev not in heads:
             raise error.Abort(_(b'revision is not an open head: %d') % rev)