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
--- 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