Mercurial > evolve
diff hgext3rd/topic/__init__.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 | 1341ff3ba4a9 |
children | 66357d4d03b2 |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Mon Sep 04 12:19:49 2017 +0200 +++ b/hgext3rd/topic/__init__.py Mon Sep 04 12:23:03 2017 +0200 @@ -135,7 +135,7 @@ # XXX we might want to include t0 here, # however t0 is related to 'currenttopic' which has no place here. return None - revlist = stack.getstack(self._repo, topic=topic) + revlist = stack.stack(self._repo, topic=topic) try: return revlist.index(self.rev()) except IndexError: @@ -154,12 +154,12 @@ tname = topic = repo.currenttopic if not tname: raise error.Abort(_('cannot resolve "%s": no active topic') % name) - revs = list(stack.getstack(repo, topic=topic)) + revs = list(stack.stack(repo, topic=topic)) elif branchrev.match(name): ttype = 'branch' idx = int(name[1:]) tname = branch = repo[None].branch() - revs = list(stack.getstack(repo, branch=branch)) + revs = list(stack.stack(repo, branch=branch)) if revs is not None: try: