Search code examples
c#svnsharpsvn

Current Revision of the working directory in SharpSVN


  1. How to get the current revision of the working directory?

  2. How to get a specific revision of a file from the repository's server?


Solution

  • Use the SvnClient.GetInfo() method, with the SvnTarget set as either your working directory or the remote repository. You can then use the Revision property of the SvnInfoEventArgs to get what you want.