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
d56ceb82
Commit
d56ceb82
authored
16 years ago
by
Matt Mackall
Browse files
Options
Downloads
Patches
Plain Diff
dirstate: improve case-folding logic
- return normalized form in directory walk - track normalized form in known
parent
f8299c84
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/dirstate.py
+8
-6
8 additions, 6 deletions
mercurial/dirstate.py
with
8 additions
and
6 deletions
mercurial/dirstate.py
+
8
−
6
View file @
d56ceb82
...
...
@@ -560,5 +560,6 @@
continue
for
f
,
kind
,
st
in
entries
:
np
=
pconvert
(
join
(
nd
,
f
))
nn
=
self
.
normalize
(
np
)
if
np
in
known
:
continue
...
...
@@ -563,6 +564,6 @@
if
np
in
known
:
continue
known
[
n
p
]
=
1
known
[
n
n
]
=
1
p
=
join
(
top
,
f
)
# don't trip over symlinks
if
kind
==
stat
.
S_IFDIR
:
...
...
@@ -571,6 +572,6 @@
if
hasattr
(
match
,
'
dir
'
):
match
.
dir
(
np
)
if
np
in
dc
and
match
(
np
):
add
((
n
p
,
'
m
'
,
st
))
add
((
n
n
,
'
m
'
,
st
))
elif
imatch
(
np
):
if
supported
(
np
,
st
.
st_mode
):
...
...
@@ -575,4 +576,4 @@
elif
imatch
(
np
):
if
supported
(
np
,
st
.
st_mode
):
add
((
n
p
,
'
f
'
,
st
))
add
((
n
n
,
'
f
'
,
st
))
elif
np
in
dc
:
...
...
@@ -578,5 +579,5 @@
elif
np
in
dc
:
add
((
n
p
,
'
m
'
,
st
))
add
((
n
n
,
'
m
'
,
st
))
found
.
sort
()
return
found
...
...
@@ -584,6 +585,7 @@
files
.
sort
()
for
ff
in
files
:
nf
=
normpath
(
ff
)
nn
=
self
.
normalize
(
nf
)
f
=
_join
(
ff
)
try
:
st
=
lstat
(
f
)
...
...
@@ -604,5 +606,5 @@
for
f
,
src
,
st
in
findfiles
(
f
):
yield
src
,
f
,
st
else
:
if
n
f
in
known
:
if
n
n
in
known
:
continue
...
...
@@ -608,5 +610,5 @@
continue
known
[
n
f
]
=
1
known
[
n
n
]
=
1
if
match
(
nf
):
if
supported
(
ff
,
st
.
st_mode
,
verbose
=
True
):
yield
'
f
'
,
self
.
normalize
(
nf
),
st
...
...
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