--- a/hgext3rd/topic/stack.py Thu Sep 12 15:22:50 2019 +0700
+++ b/hgext3rd/topic/stack.py Thu Sep 12 15:38:11 2019 +0700
@@ -73,10 +73,10 @@
self._revs = trevs
def __iter__(self):
- return iter(self.revs)
+ return iter(self.indexedrevs)
def __getitem__(self, index):
- return self.revs[index]
+ return self.indexedrevs[index]
def __nonzero__(self):
return bool(self._revs)
@@ -84,7 +84,7 @@
__bool__ = __nonzero__
def index(self, item):
- return self.revs.index(item)
+ return self.indexedrevs.index(item)
@util.propertycache
def _dependencies(self):
@@ -138,7 +138,7 @@
return deps, rdeps
@util.propertycache
- def revs(self):
+ def indexedrevs(self):
# some duplication/change from _orderrevs because we use a post
# processed dependency graph.