mercurial/tags.py
changeset 35828 553a98a436cf
parent 34015 2d80e078724a
child 36277 18106c3bc94a
equal deleted inserted replaced
35827:56891a790012 35828:553a98a436cf
   242         ui, repo, data.splitlines(), "localtags",
   242         ui, repo, data.splitlines(), "localtags",
   243         recode=encoding.fromlocal)
   243         recode=encoding.fromlocal)
   244 
   244 
   245     # remove tags pointing to invalid nodes
   245     # remove tags pointing to invalid nodes
   246     cl = repo.changelog
   246     cl = repo.changelog
   247     for t in filetags.keys():
   247     for t in list(filetags):
   248         try:
   248         try:
   249             cl.rev(filetags[t][0])
   249             cl.rev(filetags[t][0])
   250         except (LookupError, ValueError):
   250         except (LookupError, ValueError):
   251             del filetags[t]
   251             del filetags[t]
   252 
   252