Patchwork D11766: sparse: demonstrate a bug when used with safe-share

login
register
mail settings
Submitter phabricator
Date Nov. 16, 2021, 5:36 p.m.
Message ID <differential-rev-PHID-DREV-z7jbc5yf2jun6v2pbnqj-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50091/
State New
Headers show

Comments

phabricator - Nov. 16, 2021, 5:36 p.m.
aalekseyev created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11766

AFFECTED FILES
  tests/test-sparse-with-safe-share.t

CHANGE DETAILS




To: aalekseyev, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-sparse-with-safe-share.t b/tests/test-sparse-with-safe-share.t
new file mode 100644
--- /dev/null
+++ b/tests/test-sparse-with-safe-share.t
@@ -0,0 +1,25 @@ 
+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^