comparison hgext/remotefilelog/basepack.py @ 40526:1419f780207c

remotefilelog: fix various minor py3 problems # skip-blame b prefixes and pycompat.long, nothing remotely interesting Differential Revision: https://phab.mercurial-scm.org/D5223
author Augie Fackler <augie@google.com>
date Mon, 05 Nov 2018 17:48:23 -0500
parents 10c10da14c5d
children 5e3b3f88c2e4
comparison
equal deleted inserted replaced
40525:433189151d5d 40526:1419f780207c
510 if indexparams.fanoutprefix == LARGEFANOUTPREFIX: 510 if indexparams.fanoutprefix == LARGEFANOUTPREFIX:
511 config = 0b10000000 511 config = 0b10000000
512 self.idxfp.write(struct.pack('!BB', self.VERSION, config)) 512 self.idxfp.write(struct.pack('!BB', self.VERSION, config))
513 513
514 class indexparams(object): 514 class indexparams(object):
515 __slots__ = ('fanoutprefix', 'fanoutstruct', 'fanoutcount', 'fanoutsize', 515 __slots__ = (r'fanoutprefix', r'fanoutstruct', r'fanoutcount',
516 'indexstart') 516 r'fanoutsize', r'indexstart')
517 517
518 def __init__(self, prefixsize, version): 518 def __init__(self, prefixsize, version):
519 self.fanoutprefix = prefixsize 519 self.fanoutprefix = prefixsize
520 520
521 # The struct pack format for fanout table location (i.e. the format that 521 # The struct pack format for fanout table location (i.e. the format that