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.
So here's how it's set up and what I've tried so far:
Settings: Windows 7 (64-bit) VisualSVN Server TortoiseSVN Trac 0.11.6
Perhaps if I could send the actual error to a log file, I could dig a little deeper, but I'm not sure how.
post-commit.cmd:
call %~dp0\trac-post-commit-hook.cmd %1 %2
trac-post-commit-hook.cmd:
http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=920
Thank you so much, it would mean alot if someone could assist a little here! /Martin
To get the error message while doing the SVN commit, you should be able to change:
if __name__ == "__main__":
if len(sys.argv) < 5:
print "For usage: %s --help" % (sys.argv[0])
else:
CommitHook()
to:
if __name__ == "__main__":
if len(sys.argv) < 5:
print "For usage: %s --help" % (sys.argv[0])
else:
try:
CommitHook()
except Exception, e:
print >> sys.stderr, str(e)
sys.exit(1)