开发者

SVN post commit stucks while starting process

开发者 https://www.devze.com 2022-12-22 10:18 出处:网络
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).

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

精彩评论

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

关注公众号