comparison mercurial/wireproto.py @ 32291:bd872f64a8ba

cleanup: use set literals We no longer support Python 2.6, so we can now use set literals.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 10 Feb 2017 16:56:29 -0800
parents d0d9a4fca59b
children 33b7283a3828
comparison
equal deleted inserted replaced
32290:2959c3e986e0 32291:bd872f64a8ba
757 if streamclone.allowservergeneration(repo.ui): 757 if streamclone.allowservergeneration(repo.ui):
758 if repo.ui.configbool('server', 'preferuncompressed', False): 758 if repo.ui.configbool('server', 'preferuncompressed', False):
759 caps.append('stream-preferred') 759 caps.append('stream-preferred')
760 requiredformats = repo.requirements & repo.supportedformats 760 requiredformats = repo.requirements & repo.supportedformats
761 # if our local revlogs are just revlogv1, add 'stream' cap 761 # if our local revlogs are just revlogv1, add 'stream' cap
762 if not requiredformats - set(('revlogv1',)): 762 if not requiredformats - {'revlogv1'}:
763 caps.append('stream') 763 caps.append('stream')
764 # otherwise, add 'streamreqs' detailing our local revlog format 764 # otherwise, add 'streamreqs' detailing our local revlog format
765 else: 765 else:
766 caps.append('streamreqs=%s' % ','.join(sorted(requiredformats))) 766 caps.append('streamreqs=%s' % ','.join(sorted(requiredformats)))
767 if repo.ui.configbool('experimental', 'bundle2-advertise', True): 767 if repo.ui.configbool('experimental', 'bundle2-advertise', True):