# HG changeset patch # User Pierre-Yves David # Date 1498207878 -7200 # Node ID 58719183d383922612fabc0aa570a3389a042fae # Parent 4a148ca3e80d662ee9bf9c997d6a45ebacee82e5 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. diff -r 4a148ca3e80d -r 58719183d383 hgext3rd/topic/__init__.py --- 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]