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
79
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
c8db13bab05a
Commit
c8db13bab05a
authored
7 years ago
by
Boris Feld
Browse files
Options
Downloads
Patches
Plain Diff
prefetch revphases
parent
1fd9024f3f9f
Branches
topic/default/tr.changes.phases.followup
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mercurial/phases.py
+2
-1
2 additions, 1 deletion
mercurial/phases.py
with
2 additions
and
1 deletion
mercurial/phases.py
+
2
−
1
View file @
c8db13ba
...
...
@@ -293,6 +293,7 @@
repo
=
repo
.
unfiltered
()
torev
=
repo
.
changelog
.
rev
revs
=
[
torev
(
n
)
for
n
in
nodes
]
revphases
=
dict
((
r
,
self
.
phase
(
repo
,
r
))
for
r
in
revs
)
delroots
=
[]
# set of root deleted by this path
for
phase
in
xrange
(
targetphase
+
1
,
len
(
allphases
)):
# filter revs that are not in a compatible phase already
...
...
@@ -296,7 +297,7 @@
delroots
=
[]
# set of root deleted by this path
for
phase
in
xrange
(
targetphase
+
1
,
len
(
allphases
)):
# filter revs that are not in a compatible phase already
revs
=
[
r
for
r
in
revs
if
self
.
phase
(
repo
,
r
)
>=
phase
]
revs
=
[
r
for
r
in
revs
if
revphases
[
r
]
>=
phase
]
if
not
revs
:
break
# no roots to move anymore
...
...
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