Getting file content from repository (in memory)

It’s possible to retrieve files from the repository, and accessing the contents of these files without the need for temp files. To do this, SvnClient.Write can be used:

public void ReadContents(
                         Url url, 
                         Stream stream, 
                         long? revision=null)
{
    // Use the HEAD version when the revision param
    // wasn't specified
    var target = revision == null
        ? new SvnUriTarget(url, SvnRevisionType.Head)
        : new SvnUriTarget(url, revision);

    client.Write(target, stream);
}

About