tests/test-revlog-raw.py
changeset 35638 edc9330acac1
parent 34298 1db9abf407c5
child 35840 33275ab5e837
equal deleted inserted replaced
35637:a7d39f08bc66 35638:edc9330acac1
    18 # Enable generaldelta otherwise revlog won't use delta as expected by the test
    18 # Enable generaldelta otherwise revlog won't use delta as expected by the test
    19 tvfs.options = {'generaldelta': True, 'revlogv1': True}
    19 tvfs.options = {'generaldelta': True, 'revlogv1': True}
    20 
    20 
    21 # The test wants to control whether to use delta explicitly, based on
    21 # The test wants to control whether to use delta explicitly, based on
    22 # "storedeltachains".
    22 # "storedeltachains".
    23 revlog.revlog._isgooddelta = lambda self, d, textlen: self.storedeltachains
    23 revlog.revlog._isgooddeltainfo = lambda self, d, textlen: self.storedeltachains
    24 
    24 
    25 def abort(msg):
    25 def abort(msg):
    26     print('abort: %s' % msg)
    26     print('abort: %s' % msg)
    27     # Return 0 so run-tests.py could compare the output.
    27     # Return 0 so run-tests.py could compare the output.
    28     sys.exit()
    28     sys.exit()