comparison tests/test-sparse-with-safe-share.t @ 48342:50330d481640 stable

sparse: demonstrate a bug when used with safe-share sparse: lock the store when updating requirements config Differential Revision: https://phab.mercurial-scm.org/D11766
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Tue, 16 Nov 2021 17:35:57 +0000
parents
children b74ee41addee
comparison
equal deleted inserted replaced
48341:f21e7748c257 48342:50330d481640
1 Same with share-safe
2
3 $ echo "[format]" >> $HGRCPATH
4 $ echo "use-share-safe = True" >> $HGRCPATH
5
6 $ cd $TESTTMP
7
8 $ hg init myrepo
9 $ cd myrepo
10 $ cat > .hg/hgrc <<EOF
11 > [extensions]
12 > sparse=
13 > EOF
14
15 $ echo a > show
16 $ echo x > hide
17 $ hg ci -Aqm 'initial'
18
19 Verify basic --include
20
21 $ hg up -q 0
22 $ hg debugsparse --include 'hide'
23 devel-warn: write with no lock: "requires" at: *mercurial/scmutil.py:1558 (writerequires) (glob)
24
25 TODO: bug in sparse when used together with safe-share^