diff 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
line wrap: on
line diff
--- a/src/topic/stack.py	Mon Mar 14 17:37:39 2016 +0000
+++ b/src/topic/stack.py	Mon Mar 14 17:48:31 2016 +0000
@@ -6,9 +6,8 @@
 from mercurial import error
 
 def _getstack(repo, topic):
-    # XXX need to exclude obsolete changesets
     # XXX need sorting
-    return repo.revs("topic(%s)", topic)
+    return repo.revs("topic(%s) - obsolete()", topic)
 
 def showstack(ui, repo, topic):
     if not topic: