Fix "cannot get length of iterator" in RevisionHistory
This commit is contained in:
parent
84b8bb3de6
commit
f9df465874
@ -305,7 +305,7 @@ class RevisionHistory(object):
|
|||||||
orphanNodes.append(orphanChainNode)
|
orphanNodes.append(orphanChainNode)
|
||||||
orphanChainNode = orphanChainNode.parentNode
|
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")
|
yield (progress, maxprogress, "Collapsing orphaned chain")
|
||||||
|
|
||||||
copyTask = copyToFolderIter(self.rootFolder, orphanChainNode)
|
copyTask = copyToFolderIter(self.rootFolder, orphanChainNode)
|
||||||
|
Reference in New Issue
Block a user