diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1247,10 +1247,7 @@ class committablectx(basectx): return self._extra def tags(self): - t = [] - for p in self.parents(): - t.extend(p.tags()) - return t + return [] def bookmarks(self): b = [] diff --git a/tests/test-log.t b/tests/test-log.t --- a/tests/test-log.t +++ b/tests/test-log.t @@ -1653,7 +1653,7 @@ working-directory revision requires spec "date": [*, 0], (glob) "desc": "", "bookmarks": [], - "tags": ["tip"], + "tags": [], "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"] } ] @@ -1677,7 +1677,7 @@ working-directory revision requires spec "date": [*, 0], (glob) "desc": "", "bookmarks": [], - "tags": ["tip"], + "tags": [], "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"], "manifest": null, "extra": {"branch": "default"}, diff --git a/tests/test-tag.t b/tests/test-tag.t --- a/tests/test-tag.t +++ b/tests/test-tag.t @@ -416,6 +416,12 @@ check that we can merge tags that differ $ hg ci -A -m0 adding f0 $ hg tag tbase + $ hg up -qr '.^' + $ hg log -r 'wdir()' -T "{latesttagdistance}\n" + 1 + $ hg up -q + $ hg log -r 'wdir()' -T "{latesttagdistance}\n" + 2 $ cd .. $ hg clone repo-automatic-tag-merge repo-automatic-tag-merge-clone updating to branch default