Mercurial > hg-stable
comparison tests/test-dirstate-race.t @ 48247:5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
This is the project policy discussed in November 2020 and already put to use for
the persistent nodemap.
Differential Revision: https://phab.mercurial-scm.org/D11668
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Oct 2021 01:27:39 +0200 |
parents | b4f83c9e7905 |
children | bf11ff22a9af |
comparison
equal
deleted
inserted
replaced
48246:1837663ac216 | 48247:5c567aca080d |
---|---|
1 #testcases dirstate-v1 dirstate-v2 | 1 #testcases dirstate-v1 dirstate-v2 |
2 | 2 |
3 #if dirstate-v2 | 3 #if dirstate-v2 |
4 $ echo '[format]' >> $HGRCPATH | 4 $ cat >> $HGRCPATH << EOF |
5 $ echo 'exp-dirstate-v2=1' >> $HGRCPATH | 5 > [format] |
6 > exp-dirstate-v2=1 | |
7 > [storage] | |
8 > dirstate-v2.slow-path=allow | |
9 > EOF | |
6 #endif | 10 #endif |
7 | 11 |
8 $ hg init repo | 12 $ hg init repo |
9 $ cd repo | 13 $ cd repo |
10 $ echo a > a | 14 $ echo a > a |