--- a/hgext3rd/topic/revset.py Thu Sep 12 15:22:50 2019 +0700
+++ b/hgext3rd/topic/revset.py Thu Sep 12 15:38:11 2019 +0700
@@ -132,7 +132,7 @@
def getrange(st, a, b):
start = 1 if a is None else a
- end = len(st.revs) if b is None else b + 1
+ end = len(st.indexedrevs) if b is None else b + 1
return range(start, end)
revs = []
@@ -143,7 +143,7 @@
else:
st = stack.stack(repo, branch=repo[r].branch())
for n in getrange(st, a, b):
- if abs(n) >= len(st.revs):
+ if abs(n) >= len(st.indexedrevs):
# also means stack base is not accessible with n < 0, which
# is by design
continue
@@ -151,7 +151,7 @@
# quirk: we don't want stack base unless specifically asked
# for it (at least one of the indices is 0)
continue
- rev = st.revs[n]
+ rev = st.indexedrevs[n]
if rev == -1 and n == 0:
continue
if rev not in revs: