diff mercurial/context.py @ 25688:24cda1dd45ff

workingctx: don't report the tags for its parents This fixes the bad distance calculation for '{latesttagdistance}' mentioned in the previous patch.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 28 Jun 2015 13:38:03 -0400
parents 328739ea70c3
children 04d26a3c96fd
line wrap: on
line diff
--- a/mercurial/context.py	Tue Jun 30 23:34:12 2015 +0800
+++ b/mercurial/context.py	Sun Jun 28 13:38:03 2015 -0400
@@ -1247,10 +1247,7 @@
         return self._extra
 
     def tags(self):
-        t = []
-        for p in self.parents():
-            t.extend(p.tags())
-        return t
+        return []
 
     def bookmarks(self):
         b = []