mercurial/upgrade_utils/actions.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
child 49069 a31e9840178e
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
    43 
    43 
    44 FORMAT_VARIANT = b'deficiency'
    44 FORMAT_VARIANT = b'deficiency'
    45 OPTIMISATION = b'optimization'
    45 OPTIMISATION = b'optimization'
    46 
    46 
    47 
    47 
    48 class improvement(object):
    48 class improvement:
    49     """Represents an improvement that can be made as part of an upgrade."""
    49     """Represents an improvement that can be made as part of an upgrade."""
    50 
    50 
    51     ### The following attributes should be defined for each subclass:
    51     ### The following attributes should be defined for each subclass:
    52 
    52 
    53     # Either ``FORMAT_VARIANT`` or ``OPTIMISATION``.
    53     # Either ``FORMAT_VARIANT`` or ``OPTIMISATION``.
   682     # e.g. adding generaldelta could schedule parent redeltas.
   682     # e.g. adding generaldelta could schedule parent redeltas.
   683 
   683 
   684     return newactions
   684     return newactions
   685 
   685 
   686 
   686 
   687 class UpgradeOperation(object):
   687 class UpgradeOperation:
   688     """represent the work to be done during an upgrade"""
   688     """represent the work to be done during an upgrade"""
   689 
   689 
   690     def __init__(
   690     def __init__(
   691         self,
   691         self,
   692         ui,
   692         ui,