comparison mercurial/wireprotov1server.py @ 42057:566daffc607d

cleanup: use set literals where possible Differential Revision: https://phab.mercurial-scm.org/D6192
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 03 Apr 2019 11:21:27 -0700
parents d6569f1e9b37
children 2372284d9457
comparison
equal deleted inserted replaced
42056:4950ae4d034f 42057:566daffc607d
343 - Every leaf of the bundle's DAG is part of node set the client wants. 343 - Every leaf of the bundle's DAG is part of node set the client wants.
344 E.g. do not send a bundle of all changes if the client wants only 344 E.g. do not send a bundle of all changes if the client wants only
345 one specific branch of many. 345 one specific branch of many.
346 """ 346 """
347 def decodehexstring(s): 347 def decodehexstring(s):
348 return set([binascii.unhexlify(h) for h in s.split(';')]) 348 return {binascii.unhexlify(h) for h in s.split(';')}
349 349
350 manifest = repo.vfs.tryread('pullbundles.manifest') 350 manifest = repo.vfs.tryread('pullbundles.manifest')
351 if not manifest: 351 if not manifest:
352 return None 352 return None
353 res = exchange.parseclonebundlesmanifest(repo, manifest) 353 res = exchange.parseclonebundlesmanifest(repo, manifest)