# HG changeset patch # User Augie Fackler # Date 2018-01-18 01:09:10 # Node ID 553a98a436cfe9680de8f6249cfa399d46af2214 # Parent 56891a79001298c3b50dc156bbc92b27245c528f tags: explicitly grab list of dict keys Differential Revision: https://phab.mercurial-scm.org/D1887 diff --git a/mercurial/tags.py b/mercurial/tags.py --- a/mercurial/tags.py +++ b/mercurial/tags.py @@ -244,7 +244,7 @@ def readlocaltags(ui, repo, alltags, tag # remove tags pointing to invalid nodes cl = repo.changelog - for t in filetags.keys(): + for t in list(filetags): try: cl.rev(filetags[t][0]) except (LookupError, ValueError):