mercurial/stack.py
changeset 42960 763028fc6a69
parent 42698 77c52ce50e6a
child 43075 57875cf423c9
--- a/mercurial/stack.py	Mon Sep 23 21:29:53 2019 +0900
+++ b/mercurial/stack.py	Sun Sep 22 14:33:56 2019 +0700
@@ -7,11 +7,6 @@
 
 from __future__ import absolute_import
 
-from . import (
-    revsetlang,
-    scmutil,
-)
-
 def getstack(repo, rev=None):
     """return a sorted smartrev of the stack containing either rev if it is
     not None or the current working directory parent.
@@ -23,7 +18,6 @@
         rev = '.'
 
     revspec = 'only(%s) and not public() and not ::merge()'
-    revset = revsetlang.formatspec(revspec, rev)
-    revisions = scmutil.revrange(repo, [revset])
+    revisions = repo.revs(revspec, rev)
     revisions.sort()
     return revisions