Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-windows-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
hg-windows-ci
Commits
2888d12b
Commit
2888d12b
authored
6 years ago
by
Augie Fackler
Browse files
Options
Downloads
Patches
Plain Diff
tests: fix up uses of xrange in remotefilelog tests for py3
Differential Revision:
https://phab.mercurial-scm.org/D5604
parent
29996f6c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test-remotefilelog-cacheprocess.t
+2
-0
2 additions, 0 deletions
tests/test-remotefilelog-cacheprocess.t
tests/test-remotefilelog-datapack.py
+3
-2
3 additions, 2 deletions
tests/test-remotefilelog-datapack.py
with
5 additions
and
2 deletions
tests/test-remotefilelog-cacheprocess.t
+
2
−
0
View file @
2888d12b
...
...
@@ -18,6 +18,8 @@
>
import
os
>
import
shutil
>
import
sys
>
if
sys
.
version_info
[
0
]
>
2
:
>
xrange
=
range
>
f
=
open
('
$TESTTMP/cachelog.log
',
'
w
')
>
srccache
=
os
.
path
.
join
('
$TESTTMP
',
'
oldhgcache
')
>
def
log
(
message
):
...
...
This diff is collapsed.
Click to expand it.
tests/test-remotefilelog-datapack.py
+
3
−
2
View file @
2888d12b
...
...
@@ -18,6 +18,7 @@
sys
.
path
[
0
:
0
]
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
..
'
)]
from
mercurial.node
import
nullid
from
mercurial
import
(
pycompat
,
ui
as
uimod
,
)
from
hgext.remotefilelog
import
(
...
...
@@ -245,7 +246,7 @@
revisions
=
[]
blobs
=
{}
total
=
basepack
.
SMALLFANOUTCUTOFF
+
1
for
i
in
xrange
(
total
):
for
i
in
pycompat
.
xrange
(
total
):
filename
=
"
filename-%s
"
%
i
content
=
filename
node
=
self
.
getHash
(
content
)
...
...
@@ -328,7 +329,7 @@
]
for
packsize
in
packsizes
:
revisions
=
[]
for
i
in
xrange
(
packsize
):
for
i
in
pycompat
.
xrange
(
packsize
):
filename
=
"
filename-%s
"
%
i
content
=
"
content-%s
"
%
i
node
=
self
.
getHash
(
content
)
...
...
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