branchmap: correctly set()-ify list argument
authorAugie Fackler <augie@google.com>
Thu, 14 Nov 2019 13:14:02 -0500
changeset 43634 43f57b9620d2
parent 43633 0b7733719d21
child 43635 72b454fae92e
branchmap: correctly set()-ify list argument Caught with pytype. I'm more than a little curious how this never caused problems. Differential Revision: https://phab.mercurial-scm.org/D7289
mercurial/branchmap.py
--- a/mercurial/branchmap.py	Thu Nov 14 08:03:26 2019 -0800
+++ b/mercurial/branchmap.py	Thu Nov 14 13:14:02 2019 -0500
@@ -105,7 +105,7 @@
                 remotebranchmap,
                 repo[rtiprev].node(),
                 rtiprev,
-                closednodes=closed,
+                closednodes=set(closed),
             )
 
             # Try to stick it as low as possible
@@ -177,7 +177,7 @@
         if closednodes is None:
             self._closednodes = set()
         else:
-            self._closednodes = closednodes
+            self._closednodes = set(closednodes)
         self._entries = dict(entries)
         # whether closed nodes are verified or not
         self._closedverified = False