开发者

SVN post commit stucks while starting process

I've built a script in VS that receives the 2 arguments sent by post-commit hook.

The script runs SVN LOG to retrieve data about the revision (author, date, files).

When I run the solution from VS with constant vars for the arguments, it runs perfectly.

When I execute the exe file, also runs perfectly.

When I implement the hook script, it fails where it should read from the process.

process.Start();
            process.WaitForExit();
            str = process.StandardOutput.ReadToEnd();
            process.WaitF开发者_如何学JAVAorExit();

            if (!process.HasExited)
            {

                try
                {
                    process.Kill();
                }
                catch (Exception e3)
                {

                    // process is terminated
                }

                // Write Errors

            }

Thanks.

EDIT: The commit window stucks and never completes the commit. I write the code in C#.... there is no errors shown...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜