topic: remove a silly duplicate in a revset stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 13 Oct 2017 20:28:21 +0200
branchstable
changeset 3061 6f87042766cb
parent 3058 adfc936dff63
child 3062 0cd594fdfd75
child 3064 7a1a4d1f0958
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.
hgext3rd/topic/stack.py
--- 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: