def addFile(self, pathId, path, fileId, fileVersion,
                fileStream = None, withContents = True):
        dirname, basename = os.path.split(path)

        pathChanged = 1

        versionId = self.troveStore.getVersionId(fileVersion)

        self.newFilesInsertList.append((self.cu.binary(pathId), versionId,
                                        self.cu.binary(fileId),
                                        self.dirMap[dirname],
                                        self.baseMap[basename],
                                        pathChanged))

        changeInfo = self.changeMap.get(pathId, None)
        if changeInfo:
            if not changeInfo[1]:
                pathChanged = 0
            if not changeInfo[3]:
                versionChanged = False
            else:
                versionChanged = True
        else:
            versionChanged = (self.newSet in pathId)

        # If the file version is the same as in the old trove, or if we have
        # seen this fileId before, ignore the new stream data
        if not versionChanged:
            fileStream = None

        self.addStream(fileId, fileStream = fileStream,
                       withContents = withContents)
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/trovestore.py/TroveAdder.addFile/swapped operands of `in`