tests/test-sparse-with-safe-share.t
author Anton Shestakov <av6@dwimlabs.net>
Mon, 09 Jan 2023 18:09:36 +0400
branchstable
changeset 49870 9c7fb04843b5
parent 48494 b74ee41addee
permissions -rw-r--r--
tests: optional PEP 657 error location in test-extension.t (issue6781)

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'

Regression test: checks that this command correctly locks the store
before updating the store [requirements] config.

  $ hg up -q 0
  $ hg debugsparse --include 'hide'