comparison hgext3rd/topic/revset.py @ 2915:b3abdb3d819e

stack: replace 'getstack' with direct call to 'stack' The dedicated function do not add any value. We can update all the callers.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 04 Sep 2017 12:23:03 +0200
parents f19b314d8475
children 430fb1758d28
comparison
equal deleted inserted replaced
2914:9897babc1fb5 2915:b3abdb3d819e
76 branch = None 76 branch = None
77 if not topic and repo.currenttopic: 77 if not topic and repo.currenttopic:
78 topic = repo.currenttopic 78 topic = repo.currenttopic
79 if not topic: 79 if not topic:
80 branch = repo[None].branch() 80 branch = repo[None].branch()
81 return revset.baseset(stack.getstack(repo, branch=branch, topic=topic)[1:]) & subset 81 return revset.baseset(stack.stack(repo, branch=branch, topic=topic)[1:]) & subset
82 82
83 83
84 def modsetup(ui): 84 def modsetup(ui):
85 revset.symbols.update({'topic': topicset}) 85 revset.symbols.update({'topic': topicset})
86 revset.symbols.update({'ngtip': ngtipset}) 86 revset.symbols.update({'ngtip': ngtipset})