Fix "cannot get length of iterator" in RevisionHistory

This commit is contained in:
David Vierra 2016-09-16 03:50:39 -10:00
parent 84b8bb3de6
commit f9df465874

View File

@ -305,7 +305,7 @@ class RevisionHistory(object):
orphanNodes.append(orphanChainNode)
orphanChainNode = orphanChainNode.parentNode
for progress, orphanChainNode in enumProgress(reversed(orphanNodes), 0, 20):
for progress, orphanChainNode in enumProgress(orphanNodes[::-1], 0, 20):
yield (progress, maxprogress, "Collapsing orphaned chain")
copyTask = copyToFolderIter(self.rootFolder, orphanChainNode)