topic: use the 'topic' revset in namespace
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 22 Jun 2017 09:47:14 +0200
changeset 2652 839c2879edcc
parent 2651 6a3df2404472
child 2653 13313d0cab71
topic: use the 'topic' revset in namespace This revset performance just got improved.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Thu Jun 22 09:41:01 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Thu Jun 22 09:47:14 2017 +0200
@@ -138,7 +138,7 @@
     if name not in repo.topics:
         return []
     return [ctx.node() for ctx in
-            repo.set('not public() and extra(topic, %s)', name)]
+            repo.set('not public() and topic(%s)', name)]
 
 def _nodemap(repo, node):
     ctx = repo[node]