comparison mercurial/upgrade.py @ 43031:e16ca9fde7aa

upgrade: detect the side-data format variants Note that for now we cannot upgrade/downgrade to it. Differential Revision: https://phab.mercurial-scm.org/D6887
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Sep 2019 02:43:17 +0200
parents 373749982924
children 2372284d9457
comparison
equal deleted inserted replaced
43030:827cb4fe62a3 43031:e16ca9fde7aa
313 313
314 upgrademessage = _('Revlog supports delta chain with more unused data ' 314 upgrademessage = _('Revlog supports delta chain with more unused data '
315 'between payload. These gaps will be skipped at read ' 315 'between payload. These gaps will be skipped at read '
316 'time. This allows for better delta chains, making a ' 316 'time. This allows for better delta chains, making a '
317 'better compression and faster exchange with server.') 317 'better compression and faster exchange with server.')
318
319 @registerformatvariant
320 class sidedata(requirementformatvariant):
321 name = 'sidedata'
322
323 _requirement = localrepo.SIDEDATA_REQUIREMENT
324
325 default = False
326
327 description = _('Allows storage of extra data alongside a revision, '
328 'unlocking various caching options.')
329
330 upgrademessage = _('Allows storage of extra data alongside a revision.')
318 331
319 @registerformatvariant 332 @registerformatvariant
320 class removecldeltachain(formatvariant): 333 class removecldeltachain(formatvariant):
321 name = 'plain-cl-delta' 334 name = 'plain-cl-delta'
322 335