mercurial/upgrade_utils/actions.py
branchstable
changeset 49376 7fe86498e84f
parent 49225 566066826e7c
child 49560 d12446766a35
equal deleted inserted replaced
49375:6b04f702c501 49376:7fe86498e84f
   681         if name is not None and name not in destreqs:
   681         if name is not None and name not in destreqs:
   682             continue
   682             continue
   683 
   683 
   684         newactions.append(d)
   684         newactions.append(d)
   685 
   685 
   686     newactions.extend(o for o in sorted(optimizations) if o not in newactions)
   686     newactions.extend(
       
   687         o
       
   688         for o in sorted(optimizations, key=(lambda x: x.name))
       
   689         if o not in newactions
       
   690     )
   687 
   691 
   688     # FUTURE consider adding some optimizations here for certain transitions.
   692     # FUTURE consider adding some optimizations here for certain transitions.
   689     # e.g. adding generaldelta could schedule parent redeltas.
   693     # e.g. adding generaldelta could schedule parent redeltas.
   690 
   694 
   691     return newactions
   695     return newactions