Show More
@@ -7,11 +7,6 b'' | |||
|
7 | 7 | |
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | from . import ( | |
|
11 | revsetlang, | |
|
12 | scmutil, | |
|
13 | ) | |
|
14 | ||
|
15 | 10 | def getstack(repo, rev=None): |
|
16 | 11 | """return a sorted smartrev of the stack containing either rev if it is |
|
17 | 12 | not None or the current working directory parent. |
@@ -23,7 +18,6 b' def getstack(repo, rev=None):' | |||
|
23 | 18 | rev = '.' |
|
24 | 19 | |
|
25 | 20 | revspec = 'only(%s) and not public() and not ::merge()' |
|
26 |
rev |
|
|
27 | revisions = scmutil.revrange(repo, [revset]) | |
|
21 | revisions = repo.revs(revspec, rev) | |
|
28 | 22 | revisions.sort() |
|
29 | 23 | return revisions |
General Comments 0
You need to be logged in to leave comments.
Login now