##// END OF EJS Templates
revlog: explicitly set revlogv0 in vfs options...
marmoute -
r43294:188476e4 default
parent child Browse files
Show More
@@ -748,6 +748,8 b' def resolvestorevfsoptions(ui, requireme'
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
@@ -363,10 +363,7 b' class revlog(object):'
363 newversionflags = REVLOGV1 | FLAG_INLINE_DATA
363 newversionflags = REVLOGV1 | FLAG_INLINE_DATA
364 if 'generaldelta' in opts:
364 if 'generaldelta' in opts:
365 newversionflags |= FLAG_GENERALDELTA
365 newversionflags |= FLAG_GENERALDELTA
366 elif getattr(self.opener, 'options', None) is not None:
366 elif 'revlogv0' in getattr(self.opener, 'options', {}):
367 # If options provided but no 'revlog*' found, the repository
368 # would have no 'requires' file in it, which means we have to
369 # stick to the old format.
370 newversionflags = REVLOGV0
367 newversionflags = REVLOGV0
371 else:
368 else:
372 newversionflags = REVLOG_DEFAULT_VERSION
369 newversionflags = REVLOG_DEFAULT_VERSION
General Comments 0
You need to be logged in to leave comments. Login now