tests/test-status-eacces.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 11 Nov 2024 16:41:16 +0100
branchstable
changeset 52223 7c1d7edff91b
parent 51953 fdb1971bf634
permissions -rw-r--r--
windows: work around argument size limitation in test-bookmarks-pushpull.t Apparently, we need to got through MSYS for such a long argument to be accepted.

#testcases dirstate-v1 dirstate-v2

#if dirstate-v2
  $ cat >> $HGRCPATH << EOF
  > [format]
  > use-dirstate-v2=1
  > [storage]
  > dirstate-v2.slow-path=allow
  > EOF
#endif


The proliferation of status implementations can be confusing:
- The pure python implementation:
(no-rhg pure !)
- The C implementation:
(no-rhg no-rust no-pure !)
- The two rust implementations:
(rhg !)
(no-rhg rust !)

  $ hg init repo1
  $ cd repo1
  $ mkdir d1
  $ touch d1/x
  $ hg commit -Am.
  adding d1/x
  $ touch d1/y
  $ chmod -r d1
  $ hg status
  d1: $EACCES$ (unix-permissions !)
  ! d1/x (rhg !)
  ! d1/x (no-rhg rust !)
  ? d1/y (no-unix-permissions !)
  $ hg status
  d1: $EACCES$ (unix-permissions !)
  ! d1/x (rust !)
  ! d1/x (no-rust rhg !)
  ? d1/y (no-unix-permissions !)
  $ chmod +r d1
  $ hg status
  ? d1/y

  $ touch d1/z
  $ hg status
  ? d1/y
  ? d1/z