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.
views:
58answers:
2
A:
kbrimington
2010-08-06 19:57:04
Nooooooooooooo :P Cannot store (even temporarily) on the filesystem I guess I will have to find another way! Thanks.
Sam F
2010-08-06 20:04:20
That's just not true, see my answer
Sander Rijken
2010-08-07 13:29:10
+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
2010-08-07 13:31:00
Or just client.Write(new Uri(..), stream) if you want the HEAD revision.
Bert Huijben
2010-08-07 13:39:06