comparison mercurial/revlogutils/rewrite.py @ 51029:498afb627f78

revlog: move configuration attribute into dedicated object First this make things clearer as the number of configuration attributes has grown out of control, so gathering them make things clearer. Second, this will make future sharing them at different level simpler. Third it will allow us to make initialisation and temporary override simpler soon.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 10:02:05 +0200
parents 509f0f7fc89e
children f636103c4d67
comparison
equal deleted inserted replaced
51028:f70ce1aedbcb 51029:498afb627f78
73 postfix=b'tmpcensored', 73 postfix=b'tmpcensored',
74 censorable=True, 74 censorable=True,
75 ) 75 )
76 newrl._format_version = rl._format_version 76 newrl._format_version = rl._format_version
77 newrl._format_flags = rl._format_flags 77 newrl._format_flags = rl._format_flags
78 newrl._generaldelta = rl._generaldelta 78 newrl.delta_config.general_delta = rl._generaldelta
79 newrl._parse_index = rl._parse_index 79 newrl._parse_index = rl._parse_index
80 80
81 for rev in rl.revs(): 81 for rev in rl.revs():
82 node = rl.node(rev) 82 node = rl.node(rev)
83 p1, p2 = rl.parents(node) 83 p1, p2 = rl.parents(node)