def getFileVersions(self, fileList, withContents = False):
        # this is for compatibility with <= 1.0.13
        crossRepos = False
        for (pathId, fileId, fileVersion) in fileList:
            if fileVersion.getHost() not in self.serverNameList:
                crossRepos = True

        if crossRepos:
            for x in fileList:
                yield self.getFileVersion(withContents = withContents, *x)
        else:
            fileDict = self.troveStore.getFiles(fileList)
            for x in fileList:
                # (pathId, fileId) lookup
                try:
                    fileObj = fileDict[x[0:2]]
                except KeyError:
                    raise errors.FileStreamMissing(x[1])

                if withContents:
                    if file.hasContents:
                        cont = filecontents.FromDataStore(self.contentsStore,
                                                          file.contents.sha1())
                    else:
                        cont = None

                    yield (fileObj, cont)

                yield fileObj
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/fsrepos.py/FilesystemRepository.getFileVersions/original