diff hgext3rd/topic/stack.py @ 3061:6f87042766cb stable

topic: remove a silly duplicate in a revset Spotted by Pulkit Goyal. More performance win seems to exists here, but we starts with the obvious.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 13 Oct 2017 20:28:21 +0200
parents b185beb94df5
children 144989dabe93
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Tue Oct 10 22:48:43 2017 +0200
+++ b/hgext3rd/topic/stack.py	Fri Oct 13 20:28:21 2017 +0200
@@ -34,7 +34,7 @@
         if topic is not None and branch is not None:
             raise error.ProgrammingError('both branch and topic specified (not defined yet)')
         elif topic is not None:
-            trevs = repo.revs("not obsolete() and topic(%s) - obsolete()", topic)
+            trevs = repo.revs("not obsolete() and topic(%s)", topic)
         elif branch is not None:
             trevs = repo.revs("not public() and branch(%s) - obsolete() - topic()", branch)
         else: