changeset 35828:553a98a436cf

tags: explicitly grab list of dict keys Differential Revision: https://phab.mercurial-scm.org/D1887
author Augie Fackler <augie@google.com>
date Wed, 17 Jan 2018 20:09:10 -0500
parents 56891a790012
children c87926ebe096
files mercurial/tags.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/tags.py	Wed Jan 17 20:08:40 2018 -0500
+++ b/mercurial/tags.py	Wed Jan 17 20:09:10 2018 -0500
@@ -244,7 +244,7 @@
 
     # 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):