##// END OF EJS Templates
sparse: demonstrate a bug when used with safe-share...
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

File last commit:

r49325:50330d48 stable
r49325:50330d48 stable
Show More
test-sparse-with-safe-share.t
25 lines | 516 B | text/troff | Tads3Lexer
/ tests / test-sparse-with-safe-share.t
Same with share-safe
$ echo "[format]" >> $HGRCPATH
$ echo "use-share-safe = True" >> $HGRCPATH
$ cd $TESTTMP
$ hg init myrepo
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=
> EOF
$ echo a > show
$ echo x > hide
$ hg ci -Aqm 'initial'
Verify basic --include
$ hg up -q 0
$ hg debugsparse --include 'hide'
devel-warn: write with no lock: "requires" at: *mercurial/scmutil.py:1558 (writerequires) (glob)
TODO: bug in sparse when used together with safe-share^