changeset 44993:98f97026fa05

phases: remove useless lookup of repo[rev].rev() in _retractboundary changectx object is no longer needed thanks to a54ee130210a.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 20 Jun 2020 11:10:23 +0900
parents 484e04dc7f42
children cfd06649a1b8
files mercurial/phases.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Thu Jun 04 06:44:00 2020 +0200
+++ b/mercurial/phases.py	Sat Jun 20 11:10:23 2020 +0900
@@ -601,10 +601,10 @@
             # retracted.
             minnewroot = min(newroots)
             aboveroots = [rev for rev in currentroots if rev >= minnewroot]
-            updatedroots = repo.set(b'roots(%ld::)', aboveroots)
+            updatedroots = repo.revs(b'roots(%ld::)', aboveroots)
 
             finalroots = {rev for rev in currentroots if rev < minnewroot}
-            finalroots.update(ctx.rev() for ctx in updatedroots)
+            finalroots.update(updatedroots)
         if finalroots != oldroots:
             self._updateroots(
                 targetphase, {tonode(rev) for rev in finalroots}, tr