Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/branchmap.py @ 43678: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 | 9f70512ae2cf |
children | 9c1eccdd7ed8 |
comparison
equal
deleted
inserted
replaced
43677:0b7733719d21 | 43678:43f57b9620d2 |
---|---|
103 rtiprev = max((int(clrev(node)) for node in rbheads)) | 103 rtiprev = max((int(clrev(node)) for node in rbheads)) |
104 cache = branchcache( | 104 cache = branchcache( |
105 remotebranchmap, | 105 remotebranchmap, |
106 repo[rtiprev].node(), | 106 repo[rtiprev].node(), |
107 rtiprev, | 107 rtiprev, |
108 closednodes=closed, | 108 closednodes=set(closed), |
109 ) | 109 ) |
110 | 110 |
111 # Try to stick it as low as possible | 111 # Try to stick it as low as possible |
112 # filter above served are unlikely to be fetch from a clone | 112 # filter above served are unlikely to be fetch from a clone |
113 for candidate in (b'base', b'immutable', b'served'): | 113 for candidate in (b'base', b'immutable', b'served'): |
175 # cache has been updated, it may contain nodes that are no longer | 175 # cache has been updated, it may contain nodes that are no longer |
176 # heads. | 176 # heads. |
177 if closednodes is None: | 177 if closednodes is None: |
178 self._closednodes = set() | 178 self._closednodes = set() |
179 else: | 179 else: |
180 self._closednodes = closednodes | 180 self._closednodes = set(closednodes) |
181 self._entries = dict(entries) | 181 self._entries = dict(entries) |
182 # whether closed nodes are verified or not | 182 # whether closed nodes are verified or not |
183 self._closedverified = False | 183 self._closedverified = False |
184 # branches for which nodes are verified | 184 # branches for which nodes are verified |
185 self._verifiedbranches = set() | 185 self._verifiedbranches = set() |