title: Yet another Subversion "Commit failed" MERGE of 'blabla': 200 OK
body: <p>I get the infamous "MERGE of 'whatever': 200 OK" whenever I try to commit using a post-commit hook on Windows (running the repository and Trac locally), and I'm going crazy. I've been looking all over for a day now, without finding any solutions.</p>
  
  <p>So here's how it's set up and what I've tried so far:</p>
  
  <p>Settings:
  Windows 7 (64-bit)
  VisualSVN Server
  TortoiseSVN
  Trac 0.11.6 </p>
  
  <ul>
    <li>I'm using the three standard scripts for post-commit on Windows.</li>
    <li>Everything works when I run post-commit.cmd from the command prompt with repo and changesetnumber as parameters.</li>
    <li>After extensive trouble-shooting, I found that if I remove the last line in trac-post-commit.cmd, <strong>Python "%~dp0\trac-post-commit-hook.py" -p "%TRAC_ENV%" -r "%REV%" -u "%AUTHOR%" -m "%LOG%"</strong>, the Commit failed error goes away.</li>
    <li>Adding <strong>1/0</strong> (generating a division by zero error) in the python script doesn't show anything different. From the command prompt I get an error, though.</li>
    <li>Removing all code in the python script also makes the commit failed go away, so I guess the culprit is in trac-post-commit-hook.py.
  </ul>
  
  <p>Perhaps if I could send the actual error to a log file, I could dig a little deeper, but I'm not sure how.</p>
  
  <p>post-commit.cmd:</p>
  
  <pre>call %~dp0\trac-post-commit-hook.cmd %1 %2</pre>
  
  <p>trac-post-commit-hook.cmd:<br />
  <a href="http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=920" rel="nofollow noreferrer">http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=920</a></p>
  
  <p>Thank you so much, it would mean alot if someone could assist a little here!
  /Martin</p>