diff mercurial/upgrade_utils/actions.py @ 52270:818c2f0a5c84 stable

upgrade: fix a reference to a missing attribute I guess pytype 2023.11.21 goes out to lunch on this module- 2024.10.11 found this, and PyCharm sees the problem too. This broke back in a43d256c041a when the internal attr was made a property.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 11 Feb 2025 22:14:35 -0500
parents f4733654f144
children 42f78c859dd1
line wrap: on
line diff
--- a/mercurial/upgrade_utils/actions.py	Fri Feb 07 19:14:05 2025 -0500
+++ b/mercurial/upgrade_utils/actions.py	Tue Feb 11 22:14:35 2025 -0500
@@ -929,7 +929,7 @@
 
     def has_upgrade_action(self, name):
         """Check whether the upgrade operation will perform this action"""
-        return name in self._upgrade_actions_names
+        return name in self.upgrade_actions_names
 
     def print_post_op_messages(self):
         """print post upgrade operation warning messages"""