I'd like to call svn up from an asp.net page so people can hit the page to update a repository. (BTW: I'm using Beanstalk.com svn hosting which doesn't allow post-commit hooks, which is why I am doing it this way).
See what I've got below. The process starts (it shows up in Processes in Task Manager) and exits after several seconds with no output message (at least none is outputted to the page). The repository does not get updated. But it does do something with the repository because the next time I try to manually update it from the command line it says the repo is locked. I have to run svn cleanup to get it to update.
Ideas?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
startInfo = New System.Diagnostics.ProcessStartInfo("svn")
startInfo.RedirectStandardOutput = True
startInfo.UseShellExecute = False
startInfo.Arguments = "up " & Request.QueryString("path")
pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit()
Response.Write(pStart.StandardOutput.ReadToEnd())
End Sub