Created
December 17, 2009 14:15
-
-
Save earthday/258772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
using (SvnClient client = new SvnClient()) | |
{ | |
SvnInfoEventArgs serverInfo; | |
SvnInfoEventArgs clientInfo; | |
SvnUriTarget repos = new SvnUriTarget("http://svn.test.com/demo"); | |
SvnPathTarget local = new SvnPathTarget(@"d:\Work\Code\demo"); | |
client.GetInfo(repos, out serverInfo); | |
client.GetInfo(local, out clientInfo); | |
string path = @"d:\Work\Code\Demo"; | |
client.CleanUp(path); | |
client.Revert(path); | |
client.Update(path); | |
Console.WriteLine(string.Format("serverInfo revision of {0} is {1}", repos, serverInfo.Revision)); | |
Console.WriteLine(string.Format("clientInfo revision of {0} is {1}", local, clientInfo.Revision)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice !