Mercurial > hg-stable
changeset 47561:8e9295912573
compat: normalise path before comparison in revlog splitting test
This fixes the test on Window.
Differential Revision: https://phab.mercurial-scm.org/D10999
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 06 Jul 2021 10:51:41 +0200 |
parents | af633293a5bd |
children | 17fde6763286 |
files | tests/test-transaction-rollback-on-revlog-split.t |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-transaction-rollback-on-revlog-split.t Thu Jul 08 15:55:15 2021 +0200 +++ b/tests/test-transaction-rollback-on-revlog-split.t Tue Jul 06 10:51:41 2021 +0200 @@ -10,14 +10,13 @@ > > def extsetup(ui): > def close(orig, *args, **kwargs): - > path = args[0]._atomictempfile__name + > path = util.normpath(args[0]._atomictempfile__name) > if path.endswith(b'/.hg/store/data/file.i'): > os._exit(80) > return orig(*args, **kwargs) > extensions.wrapfunction(util.atomictempfile, 'close', close) > EOF - Test offset computation to correctly factor in the index entries themselve. Also test that the new data size has the correct size if the transaction is aborted after the index has been replaced.