« FireBug is an amazing FireFox plugin for developers | Main | Announcing DotSVN.Net site »

Connecting to SVN repository using DotSVN


In this post I would like to highlight how easy it is to connect to SVN repository using DotSVN.

Steps to follow:
1) Create an instance of ISVNRepository using the SVNRepositoryFactory
2) Now that we have a connection to the repository, we can get contents using the GetDir method.
The SVNDirEntry representation of a versioned directory entry, It contains
  • The Entry name
  • Entry kind (is it a file or directory).
  • File size (in case an entry is a file)
  • The last changed revision
  • The date when the entry was last changed
  • The name of the author who last changed the entry
  • The commit log message for the last changed revision.

3) Now we can iterate through the SVNDirEntry collection.

And that is it. We can also call other methods in the repository like
1

Archives

Subscribe by e-mail

Creative Commons License
This weblog is licensed under a Creative Commons License.