comparison mercurial/tags.py @ 48946:642e31cb55f0

py3: use class X: instead of class X(object): The inheritance from object is implied in Python 3. So this should be equivalent. This change was generated via an automated search and replace. So there may have been some accidental changes. Differential Revision: https://phab.mercurial-scm.org/D12352
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 13:08:28 -0700
parents f254fc73d956
children bde2e4ef968a
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
682 _fnodescachefile = b'hgtagsfnodes1' 682 _fnodescachefile = b'hgtagsfnodes1'
683 _fnodesrecsize = 4 + 20 # changeset fragment + filenode 683 _fnodesrecsize = 4 + 20 # changeset fragment + filenode
684 _fnodesmissingrec = b'\xff' * 24 684 _fnodesmissingrec = b'\xff' * 24
685 685
686 686
687 class hgtagsfnodescache(object): 687 class hgtagsfnodescache:
688 """Persistent cache mapping revisions to .hgtags filenodes. 688 """Persistent cache mapping revisions to .hgtags filenodes.
689 689
690 The cache is an array of records. Each item in the array corresponds to 690 The cache is an array of records. Each item in the array corresponds to
691 a changelog revision. Values in the array contain the first 4 bytes of 691 a changelog revision. Values in the array contain the first 4 bytes of
692 the node hash and the 20 bytes .hgtags filenode for that revision. 692 the node hash and the 20 bytes .hgtags filenode for that revision.