Question

I was looking for something in SharpSVN that will do the equivalent of "Save revision to..." in the TurtoiseSVN GUI. I have been trying to find out how to do this with no luck. Currently I am looking at: Note: logentry is a SvnLogEventArgs after I called client.GetLog(uri, arguments, out logitems);

foreach (SvnChangeItem svnChangeItem in logentry.ChangedPaths)
{
     // I would think I could do something like svnChangeItem.SaveRevsionTo()
}

The SvnChangeItems store basically the exact information that is shown in TurtoiseSVN. When you right-click there it allows you to save the selected revsision file which is what I am hoping to do with SharpSVN (I do not want to actually check out the file, just get a copy of the file at that revision). Thanks.

Was it helpful?

Solution

Use SvnClient.Export, passing in a SvnUriTarget constructed with the repository url and desired revision number.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top