comparison mercurial/dirstateutils/docket.py @ 47966:681851d6409b

dirstate-v2: Remove the `.d` suffix in data file names It could cause confusion since `.d` is already used for revlogs. This suffix is not necessary since there is already a `dirstate.` prefix. Differential Revision: https://phab.mercurial-scm.org/D11413
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 26 Jul 2021 10:26:45 +0200
parents 852262e2e7d9
children d467e44f71d7
comparison
equal deleted inserted replaced
47965:f9e6f2bb721d 47966:681851d6409b
32 ">{}s32s32sL{}sB".format(len(V2_FORMAT_MARKER), TREE_METADATA_SIZE) 32 ">{}s32s32sL{}sB".format(len(V2_FORMAT_MARKER), TREE_METADATA_SIZE)
33 ) 33 )
34 34
35 35
36 class DirstateDocket(object): 36 class DirstateDocket(object):
37 data_filename_pattern = b'dirstate.%s.d' 37 data_filename_pattern = b'dirstate.%s'
38 38
39 def __init__(self, parents, data_size, tree_metadata, uuid): 39 def __init__(self, parents, data_size, tree_metadata, uuid):
40 self.parents = parents 40 self.parents = parents
41 self.data_size = data_size 41 self.data_size = data_size
42 self.tree_metadata = tree_metadata 42 self.tree_metadata = tree_metadata