# HG changeset patch # User Raphaël Gomès # Date 2021-07-06 08:51:41 # Node ID 8e92959125738d8436064ad3f4df8e406cda36df # Parent af633293a5bd9deda7ed7a06adba874e8234dcd9 compat: normalise path before comparison in revlog splitting test This fixes the test on Window. Differential Revision: https://phab.mercurial-scm.org/D10999 diff --git a/tests/test-transaction-rollback-on-revlog-split.t b/tests/test-transaction-rollback-on-revlog-split.t --- a/tests/test-transaction-rollback-on-revlog-split.t +++ b/tests/test-transaction-rollback-on-revlog-split.t @@ -10,14 +10,13 @@ Helper extension to intercept renames. > > 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.