mercurial/stack.py
changeset 48875 6000f5b25c9b
parent 46819 d4ba4d51f85f
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
     2 #
     2 #
     3 #  Copyright Olivia Mackall <olivia@selenic.com> and other
     3 #  Copyright Olivia Mackall <olivia@selenic.com> and other
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
       
     8 from __future__ import absolute_import
       
     9 
     7 
    10 
     8 
    11 def getstack(repo, rev=None):
     9 def getstack(repo, rev=None):
    12     """return a sorted smartrev of the stack containing either rev if it is
    10     """return a sorted smartrev of the stack containing either rev if it is
    13     not None or the current working directory parent.
    11     not None or the current working directory parent.