Nov 3
Retrieving multiple versions of a file
You can use the client.FileVersions() command to retrieve multiple version of the same file. This fetches one complete file, and all other files using the differences between each revision in a single connection. This should give much better performance than retrieving all files individually with client.Write()
public void WriteRevisions(SvnTarget target,
SvnRevision from,
SvnRevision to)
{
using(SvnClient client = new SvnClient())
{
SvnFileVersionsArgs ea = new SvnFileVersionsArgs
{
Start = from,
End = to
};
client.FileVersions(target, ea,
(s, e) =>
{
Debug.WriteLine(e.Revision);
e2.WriteTo(...);
});
}
}See method WalkMe (and others) in this testcase to see more details about its usage (Username guest, no password).
