def _commit_from_manifest(self, scope, mf, new_paths, local_dir):
    '''
    Commit a new manifest. Manifest should list all paths (relative to scope)
    and have store paths for each item. The local_dir should be the local base of
    the scope, and contain copies of all new files.
    '''
    new_paths = set(new_paths)
    # First upload the changed files
    for item in mf.items:
      if new_paths in item.path:
        self.fetcher.store_item(scope, item, local_dir, show_info=True)
      else:
        log.debug("not uploading unchanged item: %s", item)
    # Next upload the manifest.
    self.store.write_string(self._store_path_manifest(scope, mf.rev), mf.to_str())
    # Finally write the commit. After this the commit is live. Interruptions
    # prior to this will just leave unused files in the store.
    self._add_commit(scope, mf.rev)
dataset/ETHPy150Open bloomreach/zinc/zinc.py/Repo._commit_from_manifest/swapped operands of `in`