repoview: filter tags to non-existent nodes from blockers (issue4328) stable
authorMatt Mackall <mpm@selenic.com>
Tue, 12 Aug 2014 02:40:42 -0500
branchstable
changeset 22106 e5dfa8689cf0
parent 22105 3efe3c2609e0
child 22119 fd172ba5c64b
child 22120 68a7ef4311ce
repoview: filter tags to non-existent nodes from blockers (issue4328)
mercurial/repoview.py
--- a/mercurial/repoview.py	Mon Aug 11 23:45:08 2014 -0400
+++ b/mercurial/repoview.py	Tue Aug 12 02:40:42 2014 -0500
@@ -41,7 +41,8 @@
         tags = {}
         tagsmod.readlocaltags(repo.ui, repo, tags, {})
         if tags:
-            blockers.extend(cl.rev(t[0]) for t in tags.values())
+            rev, nodemap = cl.rev, cl.nodemap
+            blockers.extend(rev(t[0]) for t in tags.values() if t[0] in nodemap)
     return blockers
 
 def computehidden(repo):