comparison hgext3rd/topic/stack.py @ 1936:31583ddda6d9

stack: move to new style import This unify with the new core Mercurial usage and this will make future changes to the imports easier to track.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 30 Mar 2016 03:45:18 -0700
parents 8f8a48a2e97d
children 61f36480740f
comparison
equal deleted inserted replaced
1935:11d740319280 1936:31583ddda6d9
2 # 2 #
3 # This software may be used and distributed according to the terms of the 3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version. 4 # GNU General Public License version 2 or any later version.
5 import collections 5 import collections
6 from mercurial.i18n import _ 6 from mercurial.i18n import _
7 from mercurial import error 7 from mercurial import (
8 from mercurial import obsolete 8 error,
9 obsolete,
10 )
9 11
10 def getstack(repo, topic): 12 def getstack(repo, topic):
11 # XXX need sorting 13 # XXX need sorting
12 trevs = repo.revs("topic(%s) - obsolete()", topic) 14 trevs = repo.revs("topic(%s) - obsolete()", topic)
13 return _orderrevs(repo, trevs) 15 return _orderrevs(repo, trevs)