Am having an issue with SVN.
I am creating an application in .NET 4 forms to automate a few things – one thing which i seem to be having issues with is checking out SVN.
String RepositoryLocation = GetRepositoryPath();
String ProjectLocation = GetProjectPath();
RepositoryLocation = "\"file:///" + RepositoryLocation + "\"";
ProjectLocation = "\"" + ProjectLocation + "\"";
System.Diagnostics.Process p = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo ps = new ProcessStartInfo();
ps.FileName = _svnDirectory + "svn.exe";
ps.Arguments = @"checkout -r HEAD " + RepositoryLocation + " " + ProjectLocation;
ps.UseShellExecute = false;
ps.RedirectStandardError = true;
p.StartInfo = ps;
p.Start();
if (waitForExit == true)
{
p.WaitForExit();
}
// test for an error
String error = p.StandardError.ReadToEnd();
p.Close();
this here spits out an error message “svn: e720002: write error: the system cannot find the file specified”.
It seems to create the .svn hidden folder in the project folder fine – but the error still shows.
This installation of SVN was installed with the TortoiseSVN client.
SVN version 1.7.4
TortoiseSVN version 1.7.6 (probably not needed)
UPDATE:
The command in set to the args is:
“checkout \”file:///C:/test/test client/repositories/test project/\” \”C:/test/test client/test project/\””
(note the \” escaping the quote allows for spaces in the directory path)
I have the exact same problem with you. What I did is to ignore any error message from svn and run ‘svn status’ command at the end. if it returns empty string, it means that everything is ok. If not, then there is a real problem.