changeset 22106:e5dfa8689cf0 stable

repoview: filter tags to non-existent nodes from blockers (issue4328)
author Matt Mackall <mpm@selenic.com>
date Tue, 12 Aug 2014 02:40:42 -0500
parents 3efe3c2609e0
children fd172ba5c64b 68a7ef4311ce
files mercurial/repoview.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):