Load a dumpfile stream into the repository.

        :param stream: A file stream from which the dumpfile is read
        :param progress: A file stream to which progress is written

        See ``svnadmin help load`` for details on the other arguments.

def load(
        self, stream, progress=None, ignore_uuid=False, force_uuid=False,
        use_pre_commit_hook=False, use_post_commit_hook=False, parent_dir=None
    ):
        """Load a dumpfile stream into the repository.

        :param stream: A file stream from which the dumpfile is read
        :param progress: A file stream to which progress is written

        See ``svnadmin help load`` for details on the other arguments.

        """
        cmd = [SVNADMIN, 'load', '.']
        if progress is None:
            cmd.append('-q')
        if ignore_uuid:
            cmd.append('--ignore-uuid')
        if force_uuid:
            cmd.append('--force-uuid')
        if use_pre_commit_hook:
            cmd.append('--use-pre-commit-hook')
        if use_post_commit_hook:
            cmd.append('--use-post-commit-hook')
        if parent_dir:
            cmd.extend(['--parent-dir', parent_dir])
        p = subprocess.Popen(
            cmd, cwd=self.path, stdin=stream, stdout=progress,
            stderr=subprocess.PIPE
        )
        stderr = p.stderr.read()
        p.stderr.close()
        p.wait()
        if p.returncode != 0:
            raise subprocess.CalledProcessError(p.returncode, cmd, stderr)