# HG changeset patch # User Augie Fackler # Date 1573755242 18000 # Node ID 43f57b9620d21257bb492c42dedb8c1c1348a7e7 # Parent 0b7733719d21b73822e39c408baa72870a46537e 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 diff -r 0b7733719d21 -r 43f57b9620d2 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