Mercurial > hg
view tests/test-status-eacces.t @ 50366:a445194f0a4d stable
backup: fix issue when the backup end up in a different directory
Because of store encoding, we might end up with the backup in a different
directory than the initial copy (for example if the backup path make it cross
the 120 char limit).
This can create crash, especially since 6.4 where backup are used during revlog
split.
Making sure the directory exists fixes these crash We added a test covering this
case.
Strictly speaking, this has always been broken, however the new code in 6.4
triggers it more easily.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 03 May 2023 00:16:38 +0200 |
parents | 86d2a28c018e |
children | fdb1971bf634 |
line wrap: on
line source
#testcases dirstate-v1 dirstate-v2 #if dirstate-v2 $ cat >> $HGRCPATH << EOF > [format] > use-dirstate-v2=1 > [storage] > dirstate-v2.slow-path=allow > EOF #endif The proliferation of status implementations can be confusing: - The pure python implementation: (no-rhg pure !) - The C implementation: (no-rhg no-rust no-pure !) - The two rust implementations: (rhg !) (no-rhg rust !) $ hg init repo1 $ cd repo1 $ mkdir d1 $ touch d1/x $ hg commit -Am. adding d1/x $ touch d1/y $ chmod -r d1 $ hg status d1: $EACCES$ ! d1/x (rhg !) ! d1/x (no-rhg rust !) $ hg status d1: $EACCES$ ! d1/x (rust !) ! d1/x (no-rust rhg !) $ chmod +r d1 $ hg status ? d1/y $ touch d1/z $ hg status ? d1/y ? d1/z