SVN post commit stucks while starting process

Posted by Oded on Stack Overflow See other posts from Stack Overflow or by Oded
Published on 2010-03-11T12:50:39Z Indexed on 2010/03/11 19:44 UTC
Read the original article Hit count: 453

Filed under:
|
|

Hi,

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.WaitForExit();

            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...

© Stack Overflow or respective owner

Related posts about svn

Related posts about post-commit