phases: remove useless lookup of repo[rev].rev() in _retractboundary
authorYuya Nishihara <yuya@tcha.org>
Sat, 20 Jun 2020 11:10:23 +0900
changeset 45013 98f97026fa05
parent 45012 484e04dc7f42
child 45014 cfd06649a1b8
phases: remove useless lookup of repo[rev].rev() in _retractboundary changectx object is no longer needed thanks to a54ee130210a.
mercurial/phases.py
--- 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