Mercurial > hg
changeset 47646:4259a72fe528
upgrade_utils: fix crash for removecldeltachain action
This fixes issue6383.
Differential Revision: https://phab.mercurial-scm.org/D10914
author | Mathias De Mare <mathias.de_mare@nokia.com> |
---|---|
date | Mon, 28 Jun 2021 12:12:34 +0200 |
parents | b41b4c1c644f |
children | f16958beb27b |
files | mercurial/upgrade_utils/actions.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/upgrade_utils/actions.py Fri Jul 16 14:22:02 2021 +0200 +++ b/mercurial/upgrade_utils/actions.py Mon Jun 28 12:12:34 2021 +0200 @@ -633,7 +633,10 @@ newactions = [] for d in format_upgrades: - name = d._requirement + if util.safehasattr(d, '_requirement'): + name = d._requirement + else: + name = None # If the action is a requirement that doesn't show up in the # destination requirements, prune the action.