Skip to content
Snippets Groups Projects
Commit c8db13bab05a authored by Boris Feld's avatar Boris Feld
Browse files

prefetch revphases

parent 1fd9024f3f9f
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment