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)
Dingo
2010-02-23 19:10:32