comparison mercurial/localrepo.py @ 43024:188476e48f51

revlog: explicitly set revlogv0 in vfs options Relying on having an attribute or not for something so fundamental seems too fragile to me. (And indeed I had issue with that later in this series). So we explicitly record the fact the repository use revlog-v0. Differential Revision: https://phab.mercurial-scm.org/D6934
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Sep 2019 06:24:42 +0200
parents 76608f9f27f6
children 0b87eb2fba67
comparison
equal deleted inserted replaced
43023:8af909893188 43024:188476e48f51
746 # This revlog format is super old and we don't bother trying to parse 746 # This revlog format is super old and we don't bother trying to parse
747 # opener options for it because those options wouldn't do anything 747 # opener options for it because those options wouldn't do anything
748 # meaningful on such old repos. 748 # meaningful on such old repos.
749 if b'revlogv1' in requirements or REVLOGV2_REQUIREMENT in requirements: 749 if b'revlogv1' in requirements or REVLOGV2_REQUIREMENT in requirements:
750 options.update(resolverevlogstorevfsoptions(ui, requirements, features)) 750 options.update(resolverevlogstorevfsoptions(ui, requirements, features))
751 else: # explicitly mark repo as using revlogv0
752 options['revlogv0'] = True
751 753
752 return options 754 return options
753 755
754 def resolverevlogstorevfsoptions(ui, requirements, features): 756 def resolverevlogstorevfsoptions(ui, requirements, features):
755 """Resolve opener options specific to revlogs.""" 757 """Resolve opener options specific to revlogs."""