tests/test-revlog-v2.t
changeset 45921 95c4cca641f6
parent 45390 15d35f2ba474
child 46117 17a695357270
equal deleted inserted replaced
45920:e131dbf6ee15 45921:95c4cca641f6
     4 
     4 
     5   $ hg init invalidreq
     5   $ hg init invalidreq
     6   $ cd invalidreq
     6   $ cd invalidreq
     7   $ echo exp-revlogv2.unknown >> .hg/requires
     7   $ echo exp-revlogv2.unknown >> .hg/requires
     8   $ hg log
     8   $ hg log
     9   abort: repository requires features unknown to this Mercurial: exp-revlogv2.unknown!
     9   abort: repository requires features unknown to this Mercurial: exp-revlogv2.unknown
    10   (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
    10   (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
    11   [255]
    11   [255]
    12   $ cd ..
    12   $ cd ..
    13 
    13 
    14 Can create and open repo with revlog v2 requirement
    14 Can create and open repo with revlog v2 requirement
    33 
    33 
    34   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
    34   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
    35   ...     fh.write(b'\xff\x00\xde\xad') and None
    35   ...     fh.write(b'\xff\x00\xde\xad') and None
    36 
    36 
    37   $ hg log
    37   $ hg log
    38   abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i!
    38   abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i
    39   [255]
    39   [255]
    40 
    40 
    41   $ cd ..
    41   $ cd ..
    42 
    42 
    43 Writing a simple revlog v2 works
    43 Writing a simple revlog v2 works