comparison src/topic/stack.py @ 1896:4ae421cbb07c

stack: exclude obsolete changeset from the set We care about relevant changeset, obsolete have a new version somewhere and we don't care about the old one in our display. In case of unstability, the ordering used is still wrong.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 14 Mar 2016 17:48:31 +0000
parents c8e4c6e03957
children 38570c53b1cf
comparison
equal deleted inserted replaced
1895:c8e4c6e03957 1896:4ae421cbb07c
4 # GNU General Public License version 2 or any later version. 4 # GNU General Public License version 2 or any later version.
5 from mercurial.i18n import _ 5 from mercurial.i18n import _
6 from mercurial import error 6 from mercurial import error
7 7
8 def _getstack(repo, topic): 8 def _getstack(repo, topic):
9 # XXX need to exclude obsolete changesets
10 # XXX need sorting 9 # XXX need sorting
11 return repo.revs("topic(%s)", topic) 10 return repo.revs("topic(%s) - obsolete()", topic)
12 11
13 def showstack(ui, repo, topic): 12 def showstack(ui, repo, topic):
14 if not topic: 13 if not topic:
15 topic = repo.currenttopic 14 topic = repo.currenttopic
16 if not topic: 15 if not topic: