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
7914628b
Commit
7914628b
authored
14 years ago
by
Martin Geisler
Browse files
Options
Downloads
Patches
Plain Diff
relink: ensure deterministic directory walk in collect
parent
51144584
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hgext/relink.py
+2
-1
2 additions, 1 deletion
hgext/relink.py
tests/test-relink.out
+2
-2
2 additions, 2 deletions
tests/test-relink.out
with
4 additions
and
3 deletions
hgext/relink.py
+
2
−
1
View file @
7914628b
...
...
@@ -72,4 +72,5 @@
ui
.
status
(
_
(
"
tip has %d files, estimated total number of files: %s
\n
"
)
%
(
live
,
total
))
for
dirpath
,
dirnames
,
filenames
in
os
.
walk
(
src
):
dirnames
.
sort
()
relpath
=
dirpath
[
len
(
src
)
+
seplen
:]
...
...
@@ -75,5 +76,5 @@
relpath
=
dirpath
[
len
(
src
)
+
seplen
:]
for
filename
in
filenames
:
for
filename
in
sorted
(
filenames
)
:
if
not
filename
[
-
2
:]
in
(
'
.d
'
,
'
.i
'
):
continue
st
=
os
.
stat
(
os
.
path
.
join
(
dirpath
,
filename
))
...
...
This diff is collapsed.
Click to expand it.
tests/test-relink.out
+
2
−
2
View file @
7914628b
...
...
@@ -15,5 +15,5 @@
tip has 2 files, estimated total number of files: 3
collecting: 00changelog.i 1/3 files (33.33%)
collecting: 00manifest.i 2/3 files (66.67%)
collecting:
dummy
.i 3/3 files (100.00%)
collecting:
a
.i 3/3 files (100.00%)
collecting: b.i 4/3 files (133.33%)
...
...
@@ -19,5 +19,5 @@
collecting: b.i 4/3 files (133.33%)
collecting:
a
.i 5/3 files (166.67%)
collecting:
dummy
.i 5/3 files (166.67%)
collected 5 candidate storage files
not linkable: 00changelog.i
not linkable: 00manifest.i
...
...
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