changeset 43634:43f57b9620d2

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
author Augie Fackler <augie@google.com>
date Thu, 14 Nov 2019 13:14:02 -0500
parents 0b7733719d21
children 72b454fae92e
files mercurial/branchmap.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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