evolve: remove not required calls to phases.retractboundary()
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 18 Jan 2018 16:57:19 +0530
changeset 3460 ada7fb453034
parent 3459 218fbcc3220c
child 3461 6475d2046f87
evolve: remove not required calls to phases.retractboundary() To make sure phases are preserved during evolve, we started using the phases.new-commit config option. Now we don't need to call phases.retractboundary(). Let's remove the redundant code.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Tue Jan 16 17:14:32 2018 +0530
+++ b/hgext3rd/evolve/__init__.py	Thu Jan 18 16:57:19 2018 +0530
@@ -2482,12 +2482,10 @@
 def _finalizerelocate(repo, orig, dest, nodenew, tr):
     destbookmarks = repo.nodebookmarks(dest.node())
     nodesrc = orig.node()
-    destphase = repo[nodesrc].phase()
     oldbookmarks = repo.nodebookmarks(nodesrc)
     bmchanges = []
 
     if nodenew is not None:
-        phases.retractboundary(repo, tr, destphase, [nodenew])
         obsolete.createmarkers(repo, [(repo[nodesrc], (repo[nodenew],))])
         for book in oldbookmarks:
             bmchanges.append((book, nodenew))