views:

58

answers:

2

So I know how to export files @ certain revisions to the filesystem (because all of the overloads for Export havie paths in them) but I do not want to have to use the filesystem for ease of access purposes. Is there a way to redirect this to a string or something? Thanks.

A: 
kbrimington
Nooooooooooooo :P Cannot store (even temporarily) on the filesystem I guess I will have to find another way! Thanks.
Sam F
That's just not true, see my answer
Sander Rijken
+2  A: 

You can use SvnClient.Write() to do this.

Example:

using(var stream = new MemoryStream())
{
    // export urlToFile, at revision 1234:
    client.Write(new SvnUriTarget(new Uri(urlToFile), 1234), stream);
}
Sander Rijken
Or just client.Write(new Uri(..), stream) if you want the HEAD revision.
Bert Huijben
I stand corrected. Thanks.
kbrimington