hgext/mq.py
changeset 18662 c5f7e83d47cd
parent 18644 3e92772d5383
child 18760 e74704c33e24
--- a/hgext/mq.py	Fri Feb 08 05:36:08 2013 -0800
+++ b/hgext/mq.py	Mon Feb 11 16:21:48 2013 +0100
@@ -3454,6 +3454,12 @@
                              % short(mqtags[-1][0]))
                 return result
 
+            # do not add fake tags for filtered revisions
+            included = self.changelog.hasnode
+            mqtags = [mqt for mqt in mqtags if included(mqt[0])]
+            if not mqtags:
+                return result
+
             mqtags.append((mqtags[-1][0], 'qtip'))
             mqtags.append((mqtags[0][0], 'qbase'))
             mqtags.append((self.changelog.parents(mqtags[0][0])[0], 'qparent'))