comparison mercurial/localrepo.py @ 46406:95054317e172

revlog: use a less probable revlog version for backwards compatibility This allows us to define a usable v2. Differential Revision: https://phab.mercurial-scm.org/D9902
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 28 Jan 2021 15:12:48 +0100
parents 3e91d9978bec
children 16c18d5e5dc8
comparison
equal deleted inserted replaced
46405:9fd4f7af42ea 46406:95054317e172
3637 # Mercurial versions (which didn't know about the requirements 3637 # Mercurial versions (which didn't know about the requirements
3638 # file) encounter an error on reading the changelog. This 3638 # file) encounter an error on reading the changelog. This
3639 # effectively locks out old clients and prevents them from 3639 # effectively locks out old clients and prevents them from
3640 # mucking with a repo in an unknown format. 3640 # mucking with a repo in an unknown format.
3641 # 3641 #
3642 # The revlog header has version 2, which won't be recognized by 3642 # The revlog header has version 65535, which won't be recognized by
3643 # such old clients. 3643 # such old clients.
3644 hgvfs.append( 3644 hgvfs.append(
3645 b'00changelog.i', 3645 b'00changelog.i',
3646 b'\0\0\0\2 dummy changelog to prevent using the old repo ' 3646 b'\0\0\xFF\xFF dummy changelog to prevent using the old repo '
3647 b'layout', 3647 b'layout',
3648 ) 3648 )
3649 3649
3650 # Filter the requirements into working copy and store ones 3650 # Filter the requirements into working copy and store ones
3651 wcreq, storereq = scmutil.filterrequirements(requirements) 3651 wcreq, storereq = scmutil.filterrequirements(requirements)