topic: improve the revset used to return name->nodes mapping
The 'topic' version already filters public changeset out, and skipping 'changectx'
creation will helps performance.
--- a/hgext3rd/topic/__init__.py Thu Jun 22 09:48:40 2017 +0200
+++ b/hgext3rd/topic/__init__.py Fri Jun 23 10:51:18 2017 +0200
@@ -138,8 +138,8 @@
return [repo[r].node()]
if name not in repo.topics:
return []
- return [ctx.node() for ctx in
- repo.set('not public() and topic(%s)', name)]
+ node = repo.changelog.node
+ return [node(rev) for rev in repo.revs('topic(%s)', name)]
def _nodemap(repo, node):
ctx = repo[node]