svnpost-commit

Subversion commit is extremely slow due to post-commit


I am facing a very weird problem: I am using mailer.py as post-commit hooks to send codes diff to developers. But then I find all codes check-in to this repository is very slow, even 1 file check in will cost around 2 minutes. Disable the post-commit will make codes check-in much faster. I check the apache log and subversion log but find nothing valuable. Can anyone give some idea about this problem?

Environment: Redhat EL 5.4 + CollabNet SubversionEdge 2.0

Thanks,

Jeffrey


Solution

  • Perhaps you can spawn off the diff and mailer task as separate processes from the post-commit script. That way the checkin process can finish and return while the lengthy operations continue as a background task.