equal
deleted
inserted
replaced
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() |