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
73e1ab39
Commit
73e1ab39
authored
12 years ago
by
Adrian Buehlmann
Browse files
Options
Downloads
Patches
Plain Diff
store: fncache may contain non-existent entries (fixes
b9a56b816ff2
)
parent
df55ce68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mercurial/store.py
+3
-2
3 additions, 2 deletions
mercurial/store.py
with
3 additions
and
2 deletions
mercurial/store.py
+
3
−
2
View file @
73e1ab39
...
...
@@ -527,9 +527,10 @@
'''
Checks if the store contains path
'''
path
=
"
/
"
.
join
((
"
data
"
,
path
))
# check for files (exact match)
if
path
+
'
.i
'
in
self
.
fncache
:
e
=
path
+
'
.i
'
if
e
in
self
.
fncache
and
self
.
_exists
(
e
):
return
True
# now check for directories (prefix match)
if
not
path
.
endswith
(
'
/
'
):
path
+=
'
/
'
for
e
in
self
.
fncache
:
...
...
@@ -531,9 +532,9 @@
return
True
# now check for directories (prefix match)
if
not
path
.
endswith
(
'
/
'
):
path
+=
'
/
'
for
e
in
self
.
fncache
:
if
e
.
startswith
(
path
):
if
e
.
startswith
(
path
)
and
self
.
_exists
(
e
)
:
return
True
return
False
...
...
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