Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
f1f3a8eb
Commit
f1f3a8eb
authored
2 years ago
by
Arseniy Alekseyev
Browse files
Options
Downloads
Patches
Plain Diff
tests: demonstrate a bug in dirstate-v2 handling of errors
parent
adecb1ab
No related branches found
No related tags found
3 merge requests
!506
Merge stable into default
,
!502
tests: fix timeout adjustement in delaypush.py
,
!498
dirstate-v2: fix an incorrect handling of readdir errors
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-status-eacces.t
+51
-0
51 additions, 0 deletions
tests/test-status-eacces.t
with
51 additions
and
0 deletions
tests/test-status-eacces.t
0 → 100644
+
51
−
0
View file @
f1f3a8eb
#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
$
!
d1
/
x
(
rhg
!
)
!
d1
/
x
(
no
-
rhg
rust
!
)
$
hg
status
d1:
$EACCES
$
(
rhg
dirstate
-
v1
!
)
d1:
$EACCES
$
(
no
-
rhg
rust
dirstate
-
v1
!
)
d1:
$EACCES
$
(
no
-
rust
no
-
rhg
!
)
!
d1
/
x
(
rust
dirstate
-
v1
!
)
!
d1
/
x
(
no
-
rust
rhg
dirstate
-
v1
!
)
$
chmod
+
r
d1
$
hg
status
?
d1
/
y (rhg dirstate-v1 !)
? d1/y (no-rhg rust dirstate-v1 !)
? d1/y (no
-
rhg
no
-
rust
!
)
TODO:
make
the
tests
marked
with
(
dirstate
-
v1
)
above
work
the
same
way
with
dirstate
-
v2
as
well
.
$
touch
d1
/
z
$
hg
status
?
d1
/
y
?
d1
/
z
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment