Mercurial > evolve
comparison hgext3rd/topic/revset.py @ 2668:1d2c66dc4ee3
topic: explicitly pass topic as a keyword argument
This clarify all callers before adding more logic related to bare branch in
stack.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 28 Jun 2017 01:58:09 +0200 |
parents | 6a3df2404472 |
children | b933a8068c17 |
comparison
equal
deleted
inserted
replaced
2667:e7079bba383d | 2668:1d2c66dc4ee3 |
---|---|
73 run).""" | 73 run).""" |
74 topic = repo.currenttopic | 74 topic = repo.currenttopic |
75 if not topic: | 75 if not topic: |
76 raise error.Abort(_('no active topic to list')) | 76 raise error.Abort(_('no active topic to list')) |
77 # ordering hack, boo | 77 # ordering hack, boo |
78 return revset.baseset(stack.getstack(repo, topic)) & subset | 78 return revset.baseset(stack.getstack(repo, topic=topic)) & subset |
79 | 79 |
80 | 80 |
81 def modsetup(ui): | 81 def modsetup(ui): |
82 revset.symbols.update({'topic': topicset}) | 82 revset.symbols.update({'topic': topicset}) |
83 revset.symbols.update({'ngtip': ngtipset}) | 83 revset.symbols.update({'ngtip': ngtipset}) |